public class MathEditor extends AbstractEditor<String>
Constructor and Description |
---|
MathEditor(org.eclipse.swt.widgets.Composite parent,
Script script)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<PropertyValue> |
createPropertyValues()
|
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
|
void |
setVariables(Collection<PropertyEntityDefinition> properties)
Sets available variables.
|
fireStateChanged, fireValueChanged, setPropertyChangeListener
public MathEditor(org.eclipse.swt.widgets.Composite parent, Script script)
parent
- the parent compositescript
- the script objectprotected Iterable<PropertyValue> createPropertyValues()
public 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 void setVariables(Collection<PropertyEntityDefinition> properties)
Editor
setVariables
in interface Editor<String>
setVariables
in class AbstractEditor<String>
properties
- the property variablesAbstractEditor.setVariables(java.util.Collection)
public String getValueType()
Editor
Editor.getValueType()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a