org.oddjob.monitor.action
Class AddJobAction
java.lang.Object
org.oddjob.monitor.model.JobAction
org.oddjob.monitor.model.JobFormAction
org.oddjob.monitor.action.AddJobAction
- All Implemented Interfaces:
- PropertyChangeNotifier, ExplorerAction, FormAction, SelectedContextAware
public class AddJobAction
- extends JobFormAction
- implements FormAction
An action that adds a child job to a job.
- Author:
- Rob Gordon
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 |
Methods inherited from interface org.oddjob.monitor.actions.FormAction |
form |
AddJobAction
public AddJobAction()
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
doForm
protected Form doForm()
- Description copied from class:
JobFormAction
- Override this method to create the form.
- Specified by:
doForm
in class JobFormAction
- Returns:
doAction
protected void doAction()
throws Exception
- Specified by:
doAction
in class JobAction
- Throws:
Exception