public class DefaultFunctionParameterEditor extends AbstractBindingValidatingEditor<Object>
Constructor and Description |
---|
DefaultFunctionParameterEditor(org.eclipse.swt.widgets.Composite parent,
Class<?> binding,
Validator validator)
Creates an editor for the given binding and validator.
|
Modifier and Type | Method and Description |
---|---|
protected String |
additionalValidate(String stringValue,
Object objectValue)
Validates the given value.
|
org.eclipse.swt.widgets.Control |
getControl()
Get the editor control
|
void |
setAsText(String text)
Set the editor value as text
|
getAsText, getValue, getValueType, isValid, setValue, valueChanged
fireStateChanged, fireValueChanged, setPropertyChangeListener, setVariables
public DefaultFunctionParameterEditor(org.eclipse.swt.widgets.Composite parent, Class<?> binding, Validator validator)
parent
- the parent compositebinding
- the function parameter's bindingvalidator
- the optional validator, may be null
public org.eclipse.swt.widgets.Control getControl()
Editor
Editor.getControl()
public void setAsText(String text)
Editor
text
- the value to set as textEditor.setAsText(java.lang.String)
protected String additionalValidate(String stringValue, Object objectValue)
AbstractBindingValidatingEditor
null
if the input validates, it should contain an error
message otherwise. null
.additionalValidate
in class AbstractBindingValidatingEditor<Object>
stringValue
- the string valueobjectValue
- the according to the binding converted string valuenull
or an error messageAbstractBindingValidatingEditor.additionalValidate(java.lang.String,
java.lang.Object)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a