

Public Member Functions | |
| BeanActionSupport (Class capabilityClass) throws IllegalArgumentException | |
| BeanActionSupport (Class capabilityClass, int selectionMode) throws IllegalArgumentException | |
Protected Member Functions | |
| void | performCapability (GPNode node, Capability capability) throws InvocationTargetException |
Private Attributes | |
| Method | capabilityMethod |
| boolean | isNoArg |
An action to be invoked on Beans, and to be used in combination with Capabilities. Your actions should inherit from this action and instantiate their superclass (this class) passing the class of the Capability as an argument. For an example, please refer to {gp.example.actions.beans.SmileAction)
| cern::gp::actions::support::BeanActionSupport::BeanActionSupport | ( | Class | capabilityClass | ) | throws IllegalArgumentException [inline] |
Constructor to use if you don't need to specify the selection mode.
| capabilityClass | the class of the corresponding capability |
| cern::gp::actions::support::BeanActionSupport::BeanActionSupport | ( | Class | capabilityClass, | |
| int | selectionMode | |||
| ) | throws IllegalArgumentException [inline] |
Constructor that allows to specify the selectionMode The selection mode determines how many nodes must be selected to enable the action. The possible modes are defined in the class org.openide.util.actions.CookieAction
| capabilityClass | the class of the corresponding capability | |
| selectionMode | see fields of org.openide.util.actions.CookieAction |
References capabilityMethod, and isNoArg.
| void cern::gp::actions::support::BeanActionSupport::performCapability | ( | GPNode | node, | |
| Capability | capability | |||
| ) | throws InvocationTargetException [inline, protected, virtual] |
Performs the associated capability for the given node.
| node | the node for which the capability is performed | |
| capability | the capability to perform |
Implements cern::gp::actions::support::BeanAction.
References capabilityMethod, and isNoArg.
Method cern::gp::actions::support::BeanActionSupport::capabilityMethod [private] |
Referenced by BeanActionSupport(), and performCapability().
boolean cern::gp::actions::support::BeanActionSupport::isNoArg [private] |
Referenced by BeanActionSupport(), and performCapability().
1.6.2