Class AbstractTopologyAction
java.lang.Object
javax.swing.AbstractAction
org.jppf.ui.actions.AbstractUpdatableAction
org.jppf.ui.monitoring.node.actions.AbstractTopologyAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,UpdatableAction,ValueChangeListener
- Direct Known Subclasses:
AbstractGraphSelectionAction,AbstractSelectionAction,CancelDeferredAction,GCAction,HeapDumpAction,LoadBalancingAction,NodeConfigurationAction,NodeThreadsAction,ProvisioningAction,ReconnectNodeAction,ResetTaskCounterAction,ServerShutdownRestartAction,ServerStatisticsResetAction,ShutdownOrRestartNodeAction,SystemInformationAction,ThreadDumpAction,ThresholdSettingsAction,ToggleMasterSlaveRelationShipsAction,ToggleNodeActiveAction
Abstract superclass for all actions in the topology panel.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jppf.client.monitoring.topology.AbstractTopologyComponent[]The object representing the JPPF nodes in the tree table.protected static final org.jppf.client.monitoring.topology.AbstractTopologyComponent[]Constant for an emptyTopologyDataarray.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 TypeMethodDescriptionprotected org.jppf.utils.collections.CollectionMap<org.jppf.client.monitoring.topology.TopologyDriver,String> Get a mapping of driver node forwarder MBeans to corresponding selected nodes.voidupdateState(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
-
EMPTY_TOPOLOGY_DATA_ARRAY
protected static final org.jppf.client.monitoring.topology.AbstractTopologyComponent[] EMPTY_TOPOLOGY_DATA_ARRAYConstant for an emptyTopologyDataarray. -
dataArray
protected org.jppf.client.monitoring.topology.AbstractTopologyComponent[] dataArrayThe object representing the JPPF nodes in the tree table.
-
-
Constructor Details
-
AbstractTopologyAction
protected AbstractTopologyAction()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.
-
getDriverMap
protected org.jppf.utils.collections.CollectionMap<org.jppf.client.monitoring.topology.TopologyDriver,String> getDriverMap()Get a mapping of driver node forwarder MBeans to corresponding selected nodes.- Returns:
- a mapping of driver uuids to lists of node uuid values.
-