Class AbstractJobAction
java.lang.Object
javax.swing.AbstractAction
org.jppf.ui.actions.AbstractUpdatableAction
org.jppf.ui.monitoring.job.actions.AbstractJobAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,UpdatableAction,ValueChangeListener
- Direct Known Subclasses:
AbstractSuspendJobAction,CancelJobAction,ResumeJobAction,SelectJobsAction,UpdateMaxNodesAction,UpdatePriorityAction
Common super class for job actions.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jppf.client.monitoring.jobs.Job[]The object representing the JPPF jobs in the tree table.protected org.jppf.client.monitoring.jobs.JobDispatch[]The object representing the JPPF sub-jobs in the tree table.Fields inherited from class org.jppf.ui.actions.AbstractUpdatableAction
BASE, location, selectedElementsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateState(List<Object> selectedElements) Update this action's enabled state based on a list of selected elements.Methods inherited from class org.jppf.ui.actions.AbstractUpdatableAction
disposeDialog, getLocation, loadPreferences, loadWithPreferences, localize, localize, readyDialog, runAction, savePreferences, setKeyAction, setLocation, setOkCancelKeys, setOkCancelKeys, setupIcon, setupNameAndTooltip, setupTooltip, valueChangedMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Field Details
-
jobDataArray
protected org.jppf.client.monitoring.jobs.Job[] jobDataArrayThe object representing the JPPF jobs in the tree table. -
subjobDataArray
protected org.jppf.client.monitoring.jobs.JobDispatch[] subjobDataArrayThe object representing the JPPF sub-jobs in the tree table.
-
-
Constructor Details
-
AbstractJobAction
public AbstractJobAction()Initialize this action.
-
-
Method Details
-
updateState
Update this action's enabled state based on a list of selected elements.- Specified by:
updateStatein interfaceUpdatableAction- Overrides:
updateStatein classAbstractUpdatableAction- Parameters:
selectedElements- - a list of objects.- See Also:
-