    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigadm.editors.DateAttributeEditor

    java.lang.Object
       |
       +----w3c.jigadm.editors.AttributeEditor
               |
               +----w3c.jigadm.editors.DateAttributeEditor

public class DateAttributeEditor
extends AttributeEditor

##

DateAttributeEditor()

##

clearChanged()
  set the current value to be the original value, ie: changed must return false after a reset.
getComponent()
  get the Component created by the editor.
getValue()
  Get the current value of the edited value
hasChanged()
  Tells if the edited value has changed
initialize(RemoteResourceWrapper, Attribute, Object, Properties)
  Initialize the filter
resetChanges()
  reset the changes (if any)
setValue(Object)
  Add a Listener to this editor.
updateValue(int, boolean)
  update the new date value, according to the field defined in the Calendar

##

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 modified
    plus - 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.
  Overrides:
    hasChanged in class AttributeEditor

clearChanged

     public void clearChanged()

  set the current value to be the original value, ie: changed must return false after a reset.

  Overrides:
    clearChanged in class AttributeEditor

resetChanges

     public void resetChanges()

  reset the changes (if any)

  Overrides:
    resetChanges in class AttributeEditor

getValue

     public Object getValue()

  Get the current value of the edited value

  Returns:
    an object or null if the object was not initialized
  Overrides:
    getValue in class AttributeEditor

setValue

     public void setValue(Object o)

  Add a Listener to this editor.

  Parameters:
    el - a listener
  Overrides:
    setValue in class AttributeEditor

getComponent

     public Component getComponent()

  get the Component created by the editor.

  Returns:
    a Component
  Overrides:
    getComponent in class AttributeEditor

initialize

     public void initialize(RemoteResourceWrapper w,
                            Attribute a,
                            Object o,
                            Properties p) throws RemoteAccessException

  Initialize the filter

  Parameters:
    w - the ResourceWrapper father of the attribute
    a - the Attribute we are editing
    o - the value of the above attribute
    p - some Properties, used to fine-tune the editor
  Overrides:
    initialize in class AttributeEditor

    All Packages  Class Hierarchy  This Package  Previous  Next  Index