org.oddjob.monitor.action
Class ExecuteAction

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

public class ExecuteAction
extends JobAction
implements StateListener

An action that executes a job.

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
ExecuteAction()
           
 
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.
 void jobStateChange(StateEvent event)
          Triggered when the job state changes.
 
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

ExecuteAction

public ExecuteAction()
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.

Specified by:
getName in interface ExplorerAction
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.

Specified by:
getGroup in interface ExplorerAction
Returns:
A name. Must not be null.

getMnemonicKey

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

Specified by:
getMnemonicKey in interface ExplorerAction
Returns:
The MnemonicKey. May be null.

getAcceleratorKey

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

Specified by:
getAcceleratorKey in interface ExplorerAction
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

jobStateChange

public void jobStateChange(StateEvent event)
Description copied from interface: StateListener
Triggered when the job state changes.

Specified by:
jobStateChange in interface StateListener
Parameters:
event - The job state event.