org.oddjob.monitor.action
Class StopAction

java.lang.Object
  extended by org.oddjob.monitor.model.JobAction
      extended by org.oddjob.monitor.action.StopAction
All Implemented Interfaces:
PropertyChangeNotifier, ExplorerAction, SelectedContextAware

public class StopAction
extends JobAction

Implement a stop action.

Author:
Rob Gordon

Field Summary
 
Fields inherited from interface org.oddjob.monitor.actions.ExplorerAction
DESIGN_GROUP, ENABLED_PROPERTY, JOB_GROUP, PROPERTY_GROUP, VISIBLE_PROPERTY
 
Constructor Summary
StopAction()
           
 
Method Summary
protected  void doAction()
           
protected  void doFree(ExplorerContext explorerContext)
           
protected  void doPrepare(ExplorerContext explorerContext)
           
 KeyStroke getAcceleratorKey()
          Get the Accelerator key for the action.
 String getGroup()
          Get the group name.
 Integer getMnemonicKey()
          Get the Mnemonic Key for the action.
 String getName()
          Get the name for the option.
 
Methods inherited from class org.oddjob.monitor.model.JobAction
action, addPropertyChangeListener, checkPrepare, getExplorerContext, isEnabled, isPrepared, isVisible, prepare, removePropertyChangeListener, setEnabled, setSelectedContext, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopAction

public StopAction()
Method Detail

getName

public String getName()
Description copied from interface: ExplorerAction
Get the name for the option. This will typically be used as a menu item name.

Returns:
The name for the action.

getGroup

public String getGroup()
Description copied from interface: ExplorerAction
Get the group name. This is which group in the Job menu to place the action in.

Returns:
A name. Must not be null.

getMnemonicKey

public Integer getMnemonicKey()
Description copied from interface: ExplorerAction
Get the Mnemonic Key for the action.

Returns:
The MnemonicKey. May be null.

getAcceleratorKey

public KeyStroke getAcceleratorKey()
Description copied from interface: ExplorerAction
Get the Accelerator key for the action.

Returns:
The KeyStroke. May be null.

doPrepare

protected void doPrepare(ExplorerContext explorerContext)
Overrides:
doPrepare in class JobAction

doFree

protected void doFree(ExplorerContext explorerContext)
Overrides:
doFree in class JobAction

doAction

protected void doAction()
                 throws Exception
Specified by:
doAction in class JobAction
Throws:
Exception