public class EnumerationEditor extends AbstractEditor<String>
Constructor and Description |
---|
EnumerationEditor(org.eclipse.swt.widgets.Composite parent,
Collection<String> enumerationValues)
Creates an editor that only allows values from the given enumeration.
|
Modifier and Type | Method and Description |
---|---|
String |
getAsText()
Get the editor value as text
|
org.eclipse.swt.widgets.Control |
getControl()
Get the editor control
|
String |
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 |
setValue(String value)
Set the editor value
|
fireStateChanged, fireValueChanged, setPropertyChangeListener, setVariables
public EnumerationEditor(org.eclipse.swt.widgets.Composite parent, Collection<String> enumerationValues)
parent
- the parent compositeenumerationValues
- the enumeration valuespublic org.eclipse.swt.widgets.Control getControl()
Editor
Editor.getControl()
public void setValue(String value)
Editor
value
- the valueEditor.setValue(java.lang.Object)
public String getValue()
Editor
Editor.getValue()
public void setAsText(String text)
Editor
text
- the value to set as textEditor.setAsText(java.lang.String)
public String getAsText()
Editor
Editor.getAsText()
public boolean isValid()
Editor
Editor.isValid()
public String getValueType()
Editor
Editor.getValueType()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a