eu.esdihumboldt.hale.ui.common.editors
Class AbstractEditor<T>
java.lang.Object
eu.esdihumboldt.hale.ui.common.editors.AbstractEditor<T>
- Type Parameters:
T
- the attribute value type/binding
- All Implemented Interfaces:
- Editor<T>
- Direct Known Subclasses:
- BooleanEditor, DefaultAttributeEditor, StringEditor
public abstract class AbstractEditor<T>
- extends Object
- implements Editor<T>
Abstract base class for editors for events.
- Author:
- Kai Schwierczek
Method Summary |
protected void |
fireStateChanged(String property,
boolean oldValue,
boolean newValue)
Informs this editor's listener, if it has one, about a change to one of
this editor's boolean-valued properties. |
protected void |
fireValueChanged(String property,
Object oldValue,
Object newValue)
Informs this editor's listener, if it has one, about a change to one of
this editor's properties. |
void |
setPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
Sets or removes the property change listener for this editor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEditor
public AbstractEditor()
setPropertyChangeListener
public void setPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
- Description copied from interface:
Editor
- Sets or removes the property change listener for this editor.
Note that editors can support only a single listener.
- Specified by:
setPropertyChangeListener
in interface Editor<T>
- Parameters:
listener
- a property change listener, or null
to
remove- See Also:
Editor.setPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener)
fireStateChanged
protected void fireStateChanged(String property,
boolean oldValue,
boolean newValue)
- Informs this editor's listener, if it has one, about a change to one of
this editor's boolean-valued properties. Does nothing if the old and new
values are the same.
- Parameters:
property
- the editor property name, such as VALUE
or
IS_VALID
oldValue
- the old valuenewValue
- the new value
fireValueChanged
protected void fireValueChanged(String property,
Object oldValue,
Object newValue)
- Informs this editor's listener, if it has one, about a change to one of
this editor's properties.
- Parameters:
property
- the editor property name, such as VALUE
or
IS_VALID
oldValue
- the old value object, or null
newValue
- the new value, or null
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d