org.w3c.jigadm.editors
Class AttributesHelper

java.lang.Object
  extended by org.w3c.jigadm.editors.ResourceHelper
      extended by org.w3c.jigadm.editors.AttributesHelper
All Implemented Interfaces:
ResourceHelperInterface

public class AttributesHelper
extends ResourceHelper


Field Summary
protected static java.lang.String COMMIT_L
           
protected static java.lang.String RESET_L
           
 
Fields inherited from class org.w3c.jigadm.editors.ResourceHelper
rls
 
Constructor Summary
AttributesHelper()
           
 
Method Summary
 void clearChanged()
          set the current resource to be the original resource (ie: the hasChanged() method must return false now.
 void commitChanges()
          Commit changes (if any)
 java.awt.Component getComponent()
           
 java.lang.String getTitle()
           
 boolean hasChanged()
          tells if the edited resource in the helper has changed
 void initialize(RemoteResourceWrapper rrw, java.util.Properties pr)
          initialize.
 void resetChanges()
          undo the not-yet-commited changes
 void setMessage(java.lang.String msg)
           
 
Methods inherited from class org.w3c.jigadm.editors.ResourceHelper
addResourceListener, errorPopup, getValue, msgPopup, processEvent, removeResourceListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMIT_L

protected static final java.lang.String COMMIT_L
See Also:
Constant Field Values

RESET_L

protected static final java.lang.String RESET_L
See Also:
Constant Field Values
Constructor Detail

AttributesHelper

public AttributesHelper()
Method Detail

setMessage

public void setMessage(java.lang.String msg)

commitChanges

public void commitChanges()
                   throws RemoteAccessException
Commit changes (if any)

Throws:
RemoteAccessException - if a remote access error occurs.

hasChanged

public boolean hasChanged()
Description copied from interface: ResourceHelperInterface
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.

resetChanges

public void resetChanges()
Description copied from interface: ResourceHelperInterface
undo the not-yet-commited changes


clearChanged

public void clearChanged()
Description copied from interface: ResourceHelperInterface
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.


getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in class ResourceHelper

getTitle

public final java.lang.String getTitle()
Specified by:
getTitle in class ResourceHelper

initialize

public void initialize(RemoteResourceWrapper rrw,
                       java.util.Properties pr)
                throws RemoteAccessException
initialize.

pr - some Properties, used to fine-tune the helper
Throws:
RemoteAccessException - if a remote access error occurs.