T
- the attribute value type/bindingpublic abstract class AbstractBindingValidatingEditor<T> extends AbstractEditor<T>
Constructor and Description |
---|
AbstractBindingValidatingEditor(Class<? extends T> binding)
Constructor with the binding class.
|
Modifier and Type | Method and Description |
---|---|
protected String |
additionalValidate(String stringValue,
T objectValue)
Validates the given value.
|
String |
getAsText()
Get the editor value as text
|
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 |
setValue(T value)
Set the editor value
|
protected String |
valueChanged(String newValue)
Updates the local value, valid status and fires necessary events.
|
fireStateChanged, fireValueChanged, setPropertyChangeListener, setVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControl, setAsText
protected String valueChanged(String newValue)
newValue
- the new valuenull
if everything was
okay, otherwise the error textprotected String additionalValidate(String stringValue, T objectValue)
null
if the input validates, it should contain an error
message otherwise. null
.stringValue
- the string valueobjectValue
- the according to the binding converted string valuenull
or an error messagepublic void setValue(T value)
Editor
value
- the valueEditor.setValue(java.lang.Object)
public T getValue()
Editor
IllegalStateException
- if the current input is not validEditor.getValue()
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