org.w3c.jigadm.editors
Class ControlHelper

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

public class ControlHelper
extends ResourceHelper


Field Summary
protected static java.lang.String CHECKPOINT_L
           
protected  java.awt.Label controlLabel
           
protected static java.lang.String RESTART_L
           
protected static java.lang.String SAVE_L
           
protected static java.lang.String STOP_L
           
protected  java.awt.Panel widget
           
 
Fields inherited from class org.w3c.jigadm.editors.ResourceHelper
rls
 
Constructor Summary
ControlHelper()
           
 
Method Summary
 void clearChanged()
          set the current resource to be the original resource (ie: the hasChanged() method must return false now.
 void commitChanges()
          commit the changes (if any)
protected  void executeAction(java.lang.String action)
           
 java.awt.Component getComponent()
           
protected  java.awt.Image getIcon(PropertyManager pm, java.lang.String name)
           
 java.lang.String getTitle()
           
 boolean hasChanged()
          tells if the edited resource in the helper has changed
 void initControlPanel()
           
 void initialize(RemoteResourceWrapper rrw, java.util.Properties pr)
          initialize the editor
 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

CHECKPOINT_L

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

SAVE_L

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

STOP_L

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

RESTART_L

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

widget

protected java.awt.Panel widget

controlLabel

protected java.awt.Label controlLabel
Constructor Detail

ControlHelper

public ControlHelper()
Method Detail

commitChanges

public void commitChanges()
Description copied from interface: ResourceHelperInterface
commit the changes (if any)


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

setMessage

public void setMessage(java.lang.String msg)

executeAction

protected void executeAction(java.lang.String action)

getIcon

protected java.awt.Image getIcon(PropertyManager pm,
                                 java.lang.String name)

initControlPanel

public void initControlPanel()

initialize

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

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