See: Description
| Class | Description |
|---|---|
| AcceptAction |
The action for "accepting" something.
|
| CopyAction |
The action for "copying" something.
|
| DeleteAction |
The action for "deleting" something.
|
| EditAction |
The action for "editing" something.
|
| MainLauncherAction |
An Action that launches the main method of the class indicated in the
related system property
MainLauncherAction.MAIN_CLASS_OPTION. |
| MoveDownAction |
Move an item down in a list.
|
| MoveUpAction |
Move an item down in a list.
|
| OpenLocalExplorerAction |
Open an Explorer window with a particular root node.
|
| PropertiesAction |
Get properties of a node.
|
| RemoveAction |
SearchAction
|
| StopAction |
Action for stopping something.
|
| ViewAction |
The action for "viewing" something.
|
An action is a way to make available a functionality to the GUI. Actions can be context insensitive which means that their execution is not dependant of any context such as the current selection, or context sensitive which means that their execution is dependent on the current selection. Actions shown in contextual menus, are usually context sensitive.
Context sensitive actions can delegate their execution to the selected bean(s) or perform their own execution based on the selection. The first ones are called BeanAction and are linked to a Capability (see capabilities package). The second ones are called NodeAction and are self contained. They perform an execution that is dependant on the selection but that does not delegate to the actual selection.
To create a new action class you can inherit from NodeAction and implement the abstract method performAction() or you can inherit from BeanAction and implement performCapability(). An alternative is to inherit from BeanActionSupport. In this case you only have to write a constructor that pass a capability to the parent constructor. The method performCapability() is already implemented for you and calls automatically the corresponding method of the given capability.