Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.common
Interface Editor<T>

Type Parameters:
T - the attribute value type/binding
All Known Implementing Classes:
AbstractEditor, BooleanEditor, DefaultAttributeEditor, StringEditor

public interface Editor<T>

Attribute editor interface

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
static String IS_VALID
          Property name constant (value "editor_is_valid") to signal a change in the validity of the value of this field editor.
static String VALUE
          Property name constant (value "editor_value") to signal a change in the value of this field editor.
 
Method Summary
 String getAsText()
          Get the editor value as text
 org.eclipse.swt.widgets.Control getControl()
          Get the editor control
 T 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 setPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
          Sets or removes the property change listener for this editor.
 void setValue(T value)
          Set the editor value
 

Field Detail

IS_VALID

static final String IS_VALID
Property name constant (value "editor_is_valid") to signal a change in the validity of the value of this field editor.

See Also:
Constant Field Values

VALUE

static final String VALUE
Property name constant (value "editor_value") to signal a change in the value of this field editor.

See Also:
Constant Field Values
Method Detail

getControl

org.eclipse.swt.widgets.Control getControl()
Get the editor control

Returns:
the editor control

setValue

void setValue(T value)
Set the editor value

Parameters:
value - the value

getValue

T getValue()
Get the editor value

Returns:
the editor value

setAsText

void setAsText(String text)
Set the editor value as text

Parameters:
text - the value to set as text

getAsText

String getAsText()
Get the editor value as text

Returns:
the text representation of the editor value

isValid

boolean isValid()
Determines if the user has entered a valid value

Returns:
if the value is valid

setPropertyChangeListener

void setPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Sets or removes the property change listener for this editor.

Note that editors can support only a single listener.

Parameters:
listener - a property change listener, or null to remove

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d