T
- the attribute value type/bindingpublic interface Editor<T>
Modifier and Type | Field and Description |
---|---|
static String |
IS_VALID
Property name constant (value
"editor_is_valid" ) to signal a
change in the validity of the value of this field editor. |
static String |
VALUE
Property name constant (value
"editor_value" ) to signal a
change in the value of this field editor. |
Modifier and Type | Method and Description |
---|---|
String |
getAsText()
Get the editor value as text
|
org.eclipse.swt.widgets.Control |
getControl()
Get the editor control
|
T |
getValue()
Get the editor value
|
String |
getValueType()
Returns the type of the value edited in this editor.
|
boolean |
isValid()
Determines if the user has entered a valid value
|
void |
setAsText(String text)
Set the editor value as text
|
void |
setPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Sets or removes the property change listener for this editor.
|
void |
setValue(T value)
Set the editor value
|
void |
setVariables(Collection<PropertyEntityDefinition> properties)
Sets available variables.
|
static final String IS_VALID
"editor_is_valid"
) to signal a
change in the validity of the value of this field editor.static final String VALUE
"editor_value"
) to signal a
change in the value of this field editor.org.eclipse.swt.widgets.Control getControl()
void setValue(T value)
value
- the valueT getValue()
void setAsText(String text)
text
- the value to set as textString getAsText()
boolean isValid()
void setPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Note that editors can support only a single listener.
listener
- a property change listener, or null
to
removevoid setVariables(Collection<PropertyEntityDefinition> properties)
properties
- the property variablesString getValueType()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a