org.w3c.jigadm.editors
Class SelectEditor
java.lang.Object
|
+--org.w3c.jigadm.editors.AttributeEditor
|
+--org.w3c.jigadm.editors.SelectEditor
- public class SelectEditor
- extends AttributeEditor
SelectEditor :
Field Summary |
protected org.w3c.jigadm.editors.SelectEditor.SelectComponent |
comp
|
static java.lang.String |
FEEDER_CLASS_P
Properties - The feeder's class name. |
protected boolean |
hasChanged
|
static java.lang.String |
MODIFIER_CLASS_P
|
protected java.lang.String |
oldvalue
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FEEDER_CLASS_P
public static final java.lang.String FEEDER_CLASS_P
- Properties - The feeder's class name.
MODIFIER_CLASS_P
public static final java.lang.String MODIFIER_CLASS_P
comp
protected org.w3c.jigadm.editors.SelectEditor.SelectComponent comp
hasChanged
protected boolean hasChanged
oldvalue
protected java.lang.String oldvalue
SelectEditor
public SelectEditor()
createComponent
protected void createComponent(EditorFeeder feeder,
EditorModifier modifier,
java.lang.String selected)
setModified
protected void setModified()
hasChanged
public boolean hasChanged()
- Tells if the edited value has changed
- Returns:
- true if the value changed.
clearChanged
public void clearChanged()
- set the current value to be the original value, ie: changed
must return false after a reset.
resetChanges
public void resetChanges()
- reset the changes (if any)
getValue
public java.lang.Object getValue()
- Get the current value of the edited value
- Returns:
- an object or null if the object was not
initialized
setValue
public void setValue(java.lang.Object o)
- Set the value of the edited value
- Parameters:
o
- the new value.
getComponent
public java.awt.Component getComponent()
- get the Component created by the editor.
- Overrides:
- getComponent in class AttributeEditor
- Returns:
- a Component
initialize
public void initialize(RemoteResourceWrapper w,
Attribute a,
java.lang.Object o,
java.util.Properties p)
throws RemoteAccessException
- Initialize the editor
- Parameters:
w
- the ResourceWrapper father of the attributea
- the Attribute we are editingo
- the value of the above attributep
- some Properties, used to fine-tune the editor- Throws:
- RemoteAccessException - if a remote access error occurs.