public class DefaultPropertyEditor extends AbstractBindingValidatingEditor<Object>
Constructor and Description |
---|
DefaultPropertyEditor(org.eclipse.swt.widgets.Composite parent,
PropertyDefinition property,
EntityDefinition entity)
Creates an attribute editor for the given type.
|
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 DefaultPropertyEditor(org.eclipse.swt.widgets.Composite parent, PropertyDefinition property, EntityDefinition entity)
parent
- the parent compositeproperty
- the propertyentity
- the property entity definition representing the property,
may be null
if unknown or unavailable, needed for
code list assignment supportpublic 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