org.w3c.jigadmin.attributes
Class DateAttributeEditor
java.lang.Object
|
+--org.w3c.jigadm.editors.AttributeEditor
|
+--org.w3c.jigadmin.attributes.DateAttributeEditor
- public class DateAttributeEditor
- extends AttributeEditor
Method Summary |
void |
clearChanged()
set the current value to be the original value, ie: changed
must return false after a reset. |
java.awt.Component |
getComponent()
get the Component created by the editor. |
java.lang.Object |
getValue()
Get the current value of the edited value |
boolean |
hasChanged()
Tells if the edited value has changed |
void |
initialize(org.w3c.jigadm.RemoteResourceWrapper w,
org.w3c.tools.resources.Attribute a,
java.lang.Object o,
java.util.Properties p)
Initialize the editor |
void |
resetChanges()
reset the changes (if any) |
void |
setValue(java.lang.Object o)
Add a Listener to this editor. |
protected void |
updateValue(int field,
boolean plus)
update the new date value, according to the field defined in
the Calendar |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DateAttributeEditor
public DateAttributeEditor()
updateValue
protected void updateValue(int field,
boolean plus)
- update the new date value, according to the field defined in
the Calendar
- Parameters:
field
- the field of the Calendar to be modifiedplus
- a boolean which determine the change sign- See Also:
Calendar
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)
- Add a Listener to this editor.
- Parameters:
el
- a listener
getComponent
public java.awt.Component getComponent()
- get the Component created by the editor.
- Returns:
- a Component
- Overrides:
- getComponent in class AttributeEditor
initialize
public void initialize(org.w3c.jigadm.RemoteResourceWrapper w,
org.w3c.tools.resources.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.