|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.common.editors.AbstractEditor<Object>
eu.esdihumboldt.hale.ui.common.definition.editors.DefaultAttributeEditor
public class DefaultAttributeEditor
A default attribute editor using binding, enumeration and validation constraints.
Field Summary |
---|
Fields inherited from interface eu.esdihumboldt.hale.ui.common.Editor |
---|
IS_VALID, VALUE |
Constructor Summary | |
---|---|
DefaultAttributeEditor(org.eclipse.swt.widgets.Composite parent,
PropertyDefinition property)
Creates an attribute editor for the given type. |
Method Summary | |
---|---|
String |
getAsText()
Get the editor value as text |
org.eclipse.swt.widgets.Control |
getControl()
Get the editor control |
Object |
getValue()
Get the editor value |
boolean |
isValid()
Determines if the user has entered a valid value |
void |
setAsText(String text)
Set the editor value as text |
void |
setValue(Object value)
Set the editor value |
Methods inherited from class eu.esdihumboldt.hale.ui.common.editors.AbstractEditor |
---|
fireStateChanged, fireValueChanged, setPropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAttributeEditor(org.eclipse.swt.widgets.Composite parent, PropertyDefinition property)
parent
- the parent compositeproperty
- the propertyMethod Detail |
---|
public org.eclipse.swt.widgets.Control getControl()
Editor
Editor.getControl()
public void setValue(Object value)
Editor
value
- the valueEditor.setValue(java.lang.Object)
public Object getValue()
Editor
IllegalStateException
- if the current input is not validEditor.getValue()
public void setAsText(String text)
Editor
text
- the value to set as textEditor.setAsText(java.lang.String)
public String getAsText()
Editor
IllegalStateException
- if the current input is not validEditor.getAsText()
public boolean isValid()
Editor
Editor.isValid()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |