Skip navigation links
ACS-2016.6

Package cern.gp.actions

Contains standard actions that can be used in contextual menus or associated with buttons or toolbars, and base classes that can be used to create new actions.

See: Description

Package cern.gp.actions Description

Contains standard actions that can be used in contextual menus or associated with buttons or toolbars, and base classes that can be used to create new actions.

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.

Since:
GP 0.1
Author:
GP Project Team
Skip navigation links
Generated at 2016-07-04