org.jppf.ui.monitoring.job.actions
Class AbstractJobAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jppf.ui.actions.AbstractUpdatableAction
          extended by org.jppf.ui.monitoring.job.actions.AbstractJobAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, UpdatableAction, ValueChangeListener
Direct Known Subclasses:
AbstractSuspendJobAction, CancelJobAction, ResumeJobAction, UpdateMaxNodesAction

public abstract class AbstractJobAction
extends AbstractUpdatableAction

Common super class for job actions.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
protected  JobData[] jobDataArray
          The object representing the JPPF jobs in the tree table.
protected  JobData[] subjobDataArray
          The object representing the JPPF sub-jobs in the tree table.
 
Fields inherited from class org.jppf.ui.actions.AbstractUpdatableAction
BASE, location, selectedElements
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields 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
AbstractJobAction()
          Initialize this action.
 
Method Summary
 void updateState(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
getLocation, localize, setLocation, setupIcon, setupNameAndTooltip, valueChanged
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

jobDataArray

protected JobData[] jobDataArray
The object representing the JPPF jobs in the tree table.


subjobDataArray

protected JobData[] subjobDataArray
The object representing the JPPF sub-jobs in the tree table.

Constructor Detail

AbstractJobAction

public AbstractJobAction()
Initialize this action.

Method Detail

updateState

public void updateState(List<Object> selectedElements)
Update this action's enabled state based on a list of selected elements.

Specified by:
updateState in interface UpdatableAction
Overrides:
updateState in class AbstractUpdatableAction
Parameters:
selectedElements - - a list of objects.
See Also:
AbstractUpdatableAction.updateState(java.util.List)


Copyright © 2005-2010 JPPF Team.