org.w3c.jigadm.editors
Class ControlHelper
java.lang.Object
org.w3c.jigadm.editors.ResourceHelper
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ControlHelper
public ControlHelper()
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.