com.tssap.util.ui
Class EditableVisitor
java.lang.Object
|
+--com.tssap.util.ui.EditableVisitor
- All Implemented Interfaces:
- IControlVisitor
- public class EditableVisitor
- extends java.lang.Object
- implements IControlVisitor
Visitor to modify control's read only behavior.
|
Constructor Summary |
EditableVisitor(boolean editable)
|
EditableVisitor(boolean editable,
int controlTypes)
This visitor modifies the editable behavior for controls of the given types
There are constants for different controltypes like |
|
Method Summary |
boolean |
isEditable()
The editing status this visitor will set the visited controls to. |
boolean |
visit(org.eclipse.swt.widgets.Control control)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMBO
public static int COMBO
BUTTON_RADIO
public static int BUTTON_RADIO
BUTTON_CHECK
public static int BUTTON_CHECK
BUTTON_PRESS
public static int BUTTON_PRESS
TEXT
public static int TEXT
SLIDER
public static int SLIDER
ALL_CONTROLS
public static int ALL_CONTROLS
DEFAULT_CONTROLS
public static int DEFAULT_CONTROLS
EditableVisitor
public EditableVisitor(boolean editable)
EditableVisitor
public EditableVisitor(boolean editable,
int controlTypes)
- This visitor modifies the editable behavior for controls of the given types
There are constants for different controltypes like
- Parameters:
editable - false if it should be read onlycontrolTypes - "or" connected control constants for on which this visitor will set the editable behavior
visit
public boolean visit(org.eclipse.swt.widgets.Control control)
- Specified by:
visit in interface IControlVisitor
- See Also:
IControlVisitor.visit(org.eclipse.swt.widgets.Control)
isEditable
public boolean isEditable()
- The editing status this visitor will set the visited controls to.
- Returns:
-
Copyright © 2005 SAP AG. All Rights Reserved.