com.tssap.util.ui
Class SWTUtil
java.lang.Object
|
+--com.tssap.util.ui.SWTUtil
- public class SWTUtil
- extends java.lang.Object
Utility class for general SWT services.
|
Method Summary |
static org.eclipse.swt.widgets.Control |
findFocusControl(org.eclipse.swt.widgets.Control control)
Starting with the given control this method searches for the first conrtol with @link Control#isFocusControl() == true |
static org.eclipse.swt.graphics.Color |
getEditableViewerBackground()
Gets background color for editable viewers. |
static org.eclipse.swt.graphics.Color |
getReadOnlyViewerBackground()
Gets background color for viewers in read only. |
static void |
visitControl(org.eclipse.swt.widgets.Control control,
IControlVisitor controlVisitor)
Visitor visits the given control.
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
visitControl
public static void visitControl(org.eclipse.swt.widgets.Control control,
IControlVisitor controlVisitor)
- Visitor visits the given control.
If visitor decides to continue and control is structured (@link Composite)
method continues visiting all children.
- Parameters:
control - control to be visited / traversedcontrolVisitor - @see IControlVisitor
getEditableViewerBackground
public static org.eclipse.swt.graphics.Color getEditableViewerBackground()
- Gets background color for editable viewers.
- Returns:
-
getReadOnlyViewerBackground
public static org.eclipse.swt.graphics.Color getReadOnlyViewerBackground()
- Gets background color for viewers in read only.
- Returns:
-
findFocusControl
public static org.eclipse.swt.widgets.Control findFocusControl(org.eclipse.swt.widgets.Control control)
- Starting with the given control this method searches for the first conrtol with @link Control#isFocusControl() == true
- Parameters:
control - starting point of the recursive search- Returns:
- the sub control which has the focus or null if no such control was found
Copyright © 2005 SAP AG. All Rights Reserved.