Package org.oddjob.monitor.action
Class TaskAction
java.lang.Object
org.oddjob.monitor.model.JobAction
org.oddjob.monitor.action.TaskAction
- All Implemented Interfaces:
AutoCloseable,PropertyChangeNotifier,ExplorerAction,SelectedContextAware,StateListener
An action that calls a parameterised execution.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voiddoAction()protected voiddoFree(ExplorerContext explorerContext) protected voiddoPrepare(ExplorerContext explorerContext) Get the Accelerator key for the action.getGroup()Get the group name.Get the Mnemonic Key for the action.getName()Get the name for the option.voidjobStateChange(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
-
Constructor Details
-
TaskAction
public TaskAction()
-
-
Method Details
-
getName
Description copied from interface:ExplorerActionGet the name for the option. This will typically be used as a menu item name.- Specified by:
getNamein interfaceExplorerAction- Returns:
- The name for the action.
-
getGroup
Description copied from interface:ExplorerActionGet the group name. This is which group in the Job menu to place the action in.- Specified by:
getGroupin interfaceExplorerAction- Returns:
- A name. Must not be null.
-
getMnemonicKey
Description copied from interface:ExplorerActionGet the Mnemonic Key for the action.- Specified by:
getMnemonicKeyin interfaceExplorerAction- Returns:
- The MnemonicKey. May be null.
-
getAcceleratorKey
Description copied from interface:ExplorerActionGet the Accelerator key for the action.- Specified by:
getAcceleratorKeyin interfaceExplorerAction- Returns:
- The KeyStroke. May be null.
-
doPrepare
-
doFree
-
doAction
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
jobStateChange
Description copied from interface:StateListenerTriggered when the job state changes.- Specified by:
jobStateChangein interfaceStateListener- Parameters:
event- The job state event.
-