    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface org.w3c.jigadm.editors.ResourceHelperInterface

public interface ResourceHelperInterface

##

addResourceListener(ResourceListener)
  Add a Listener to this helper.
clearChanged()
  set the current resource to be the original resource (ie: the hasChanged() method must return false now.
commitChanges()
  commit the changes (if any)
getValue()
  get the Resource edited with this helper
hasChanged()
  tells if the edited resource in the helper has changed
initialize(RemoteResourceWrapper, Properties)
  initialize the helper
removeResourceListener(ResourceListener)
  Remove the listener from this helper.
resetChanges()
  undo the not-yet-commited changes

##

hasChanged

     public abstract boolean hasChanged()

  tells if the edited resource in the helper has changed

  Returns:
    true if the values changed. to get more informations about what has changed, you can use the three methods below.

clearChanged

     public abstract void clearChanged()

  set the current resource to be the original resource (ie: the hasChanged() method must return false now. to do a "fine tuned" reset, use one of the three following method.

getValue

     public abstract RemoteResource getValue()

  get the Resource edited with this helper

  Returns:
    a RemoteResource

addResourceListener

     public abstract void addResourceListener(ResourceListener el)

  Add a Listener to this helper.

  Parameters:
    el - a listener

removeResourceListener

     public abstract void removeResourceListener(ResourceListener el)

  Remove the listener from this helper.

  Parameters:
    el - the listener to be removed.

commitChanges

     public abstract void commitChanges() throws RemoteAccessException

  commit the changes (if any)

  Throws: RemoteAccessException
    if a remote access error occurs.

resetChanges

     public abstract void resetChanges()

  undo the not-yet-commited changes

initialize

     public abstract void initialize(RemoteResourceWrapper rw,
                                     Properties p) throws RemoteAccessException

  initialize the helper

  Parameters:
    r - the ResourceWrapper containing the Resource edited with this helper
    p - some Properties, used to fine-tune the helper
  Throws: RemoteAccessException
    if a remote access error occurs.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index