All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface w3c.jigadm.editors.ResourceHelperInterface

public interface ResourceHelperInterface

Method Index

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

Methods

 o 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.
 o 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.

 o getValue
 public abstract RemoteResource getValue()
get the Resource edited with this helper

Returns:
a RemoteResource
 o addResourceListener
 public abstract void addResourceListener(ResourceListener el)
Add a Listener to this helper.

Parameters:
el - a listener
 o removeResourceListener
 public abstract void removeResourceListener(ResourceListener el)
Remove the listener from this helper.

Parameters:
el - the listener to be removed.
 o commitChanges
 public abstract void commitChanges() throws RemoteAccessException
commit the changes (if any)

 o resetChanges
 public abstract void resetChanges()
undo the not-yet-commited changes

 o 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index