Package org.jppf.ui.actions
Class AbstractActionHandler
java.lang.Object
org.jppf.ui.actions.AbstractActionHandler
- All Implemented Interfaces:
ActionHandler
- Direct Known Subclasses:
GraphActionHandler,JTreeTableActionHandler
Abstract implementation of the
ActionManager interface.- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,UpdatableAction> Mapping of actions to their name.List of elements selected in the managed component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the action with the specified name.Get the selected elements in the JTreeTable handled by this action manager.voidputAction(String name, UpdatableAction action) Add an action with the specified name to this action manager.voidUpdate the state of all actions registered with thisActionHandler.
-
Field Details
-
actionMap
Mapping of actions to their name. -
selectedElements
List of elements selected in the managed component.
-
-
Constructor Details
-
AbstractActionHandler
public AbstractActionHandler()
-
-
Method Details
-
putAction
Add an action with the specified name to this action manager.- Specified by:
putActionin interfaceActionHandler- Parameters:
name- the name of the action to add.action- the action to add.- See Also:
-
getAction
Get the action with the specified name.- Specified by:
getActionin interfaceActionHandler- Parameters:
name- the name of the action to find.- Returns:
- an
Actionor null if the specified name could not be found. - See Also:
-
getSelectedElements
Get the selected elements in the JTreeTable handled by this action manager.- Specified by:
getSelectedElementsin interfaceActionHandler- Returns:
- a list of objects.
- See Also:
-
updateActions
public void updateActions()Update the state of all actions registered with thisActionHandler.- Specified by:
updateActionsin interfaceActionHandler- See Also:
-