Public Member Functions | Protected Member Functions

cern.gp.actions.support.BeanActionSupport Class Reference

Inheritance diagram for cern.gp.actions.support.BeanActionSupport:
cern.gp.actions.support.BeanAction

List of all members.

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

Detailed Description

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)

Version:
Revision:
1.2
Date:
2006/09/25 08:52:36
Author:
Vito Baggiolini

Constructor & Destructor Documentation

cern.gp.actions.support.BeanActionSupport.BeanActionSupport ( Class  capabilityClass  )  throws IllegalArgumentException

Constructor to use if you don't need to specify the selection mode.

Parameters:
capabilityClass the class of the corresponding capability
See also:
cern.gp.actions.support.BeanAction.BeanAction(Class)
cern.gp.actions.support.BeanActionSupport.BeanActionSupport ( Class  capabilityClass,
int  selectionMode 
) throws IllegalArgumentException

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

Parameters:
capabilityClass the class of the corresponding capability
selectionMode see fields of org.openide.util.actions.CookieAction

Member Function Documentation

void cern.gp.actions.support.BeanActionSupport.performCapability ( GPNode  node,
Capability  capability 
) throws InvocationTargetException [protected, virtual]

Performs the associated capability for the given node.

Parameters:
node the node for which the capability is performed
capability the capability to perform

Implements cern.gp.actions.support.BeanAction.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties