|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.actions.AbstractActionHandler
public abstract class AbstractActionHandler
Abstract implementation of the ActionManager interface.
| Field Summary | |
|---|---|
protected Map<String,UpdatableAction> |
actionMap
Mapping of actions to their name. |
protected List<Object> |
selectedElements
List of elements selected in the managed component. |
| Constructor Summary | |
|---|---|
AbstractActionHandler()
|
|
| Method Summary | |
|---|---|
UpdatableAction |
getAction(String name)
Get the action with the specified name. |
List<Object> |
getSelectedElements()
Get the selected elements in the JTreeTable handled by this action manager. |
void |
putAction(String name,
UpdatableAction action)
Add an action with the specified name to this action manager. |
void |
updateActions()
Update the state of all actions registered with this ActionHandler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,UpdatableAction> actionMap
protected List<Object> selectedElements
| Constructor Detail |
|---|
public AbstractActionHandler()
| Method Detail |
|---|
public void putAction(String name,
UpdatableAction action)
putAction in interface ActionHandlername - the name of the action to add.action - the action to add.ActionHandler.putAction(java.lang.String, org.jppf.ui.actions.UpdatableAction)public UpdatableAction getAction(String name)
getAction in interface ActionHandlername - the name of the action to find.
Action or null if the specified name could not be found.ActionHandler.getAction(java.lang.String)public List<Object> getSelectedElements()
getSelectedElements in interface ActionHandlerActionHandler.getSelectedElements()public void updateActions()
ActionHandler.
updateActions in interface ActionHandlerActionHandler.updateActions()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||