    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface w3c.jigadm.editors.AttributeEditorInterface

public interface AttributeEditorInterface

##

addAttributeListener(AttributeListener)
  Add a Listener to this editor.
clearChanged()
  set the current value to be the original value, ie: changed must return false after a reset.
getValue()
  Get the current value of the edited value
hasChanged()
  Tells if the edited value has changed
initialize(RemoteResourceWrapper, Attribute, Object, Properties)
  Initialize the editor
removeAttributeListener(AttributeListener)
  Remove the listener from this editor.
resetChanges()
  reset the changes (if any)
setValue(Object)
  Set the value of the edited value

##

hasChanged

     public abstract boolean hasChanged()

  Tells if the edited value has changed

  Returns:
    true if the value changed.

clearChanged

     public abstract void clearChanged()

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

resetChanges

     public abstract void resetChanges()

  reset the changes (if any)

getValue

     public abstract Object getValue()

  Get the current value of the edited value

  Returns:
    an object or null if the object was not initialized

setValue

     public abstract void setValue(Object o)

  Set the value of the edited value

  Parameters:
    o - the new value.

addAttributeListener

     public abstract void addAttributeListener(AttributeListener el)

  Add a Listener to this editor.

  Parameters:
    el - a listener

removeAttributeListener

     public abstract void removeAttributeListener(AttributeListener el)

  Remove the listener from this editor.

  Parameters:
    el - the listener to be removed.

initialize

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

  Initialize the editor

  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

    All Packages  Class Hierarchy  This Package  Previous  Next  Index