Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::gp::actions::support::BeanAction Class Reference

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

String getName ()
HelpCtx getHelpCtx ()
JButton createJButton ()

Protected Member Functions

 BeanAction (Class capabilityClass)
 BeanAction (Class capabilityClass, int mode)
String iconResource ()
Class[] cookieClasses ()
boolean surviveFocusChange ()
int mode ()
void performAction (final Node[] activatedNodes)
abstract void performCapability (GPNode node, Capability capability) throws InvocationTargetException

Private Attributes

Class[] capabilityClasses
int mode

Detailed Description

Generic action that should be used as a parent class for all actions linked to beans in the GP Platform.

Subclasses should overwrite the following methods in order to provide custom name and icon (if not overwritten a generic name and icon will be used) :

Subclasses must overwrite the following abstract methods :

Version:
Revision
1.2
Date
2006/09/25 08:52:36
Author:
Lionel Mestre


Constructor & Destructor Documentation

cern::gp::actions::support::BeanAction::BeanAction Class  capabilityClass  )  [inline, protected]
 

Creates a new BeanAction linked a the given capabilityClass and with default mode MODE_ANY

Parameters:
capabilityClass the capability class associated with this action

cern::gp::actions::support::BeanAction::BeanAction Class  capabilityClass,
int  mode
[inline, protected]
 

Creates a new BeanAction linked a the given capabilityClass and with the given mode

Parameters:
capabilityClass the capability class associated with this action
mode the mode of this action (see modes in CookieAction)


Member Function Documentation

Class [] cern::gp::actions::support::BeanAction::cookieClasses  )  [inline, protected]
 

Returns the set of capabilities supported by this action. Currently this action only support one single capability (named cookie in NetBeans).

Returns:
set of needed cookies

JButton cern::gp::actions::support::BeanAction::createJButton  )  [inline]
 

returns a Button that can invoke this action, and that is enabled or disabled properly. This is analogous to getMenuItemPresenter() or getToolBarPresenter()

Returns:
a button connected to this action

HelpCtx cern::gp::actions::support::BeanAction::getHelpCtx  )  [inline]
 

Help context where to find more about the action.

Returns:
the help context for this action

String cern::gp::actions::support::BeanAction::getName  )  [inline]
 

Human presentable name of the action. This should be presented as an item in a menu.

Returns:
the name of the action

Reimplemented in cern::gp::actions::AcceptAction, cern::gp::actions::CopyAction, cern::gp::actions::DeleteAction, cern::gp::actions::EditAction, cern::gp::actions::RemoveAction, cern::gp::actions::StopAction, cern::gp::actions::ViewAction, and cern::laser::guiplatform::actions::EnableColumnAction.

String cern::gp::actions::support::BeanAction::iconResource  )  [inline, protected]
 

Returns the pathname of the icon to use to display this action

Returns:
the pathname of the icon

Reimplemented in cern::gp::actions::RemoveAction, cern::gp::actions::StopAction, and cern::laser::guiplatform::actions::EnableColumnAction.

int cern::gp::actions::support::BeanAction::mode  )  [inline, protected]
 

void cern::gp::actions::support::BeanAction::performAction final Node[]  activatedNodes  )  [inline, protected]
 

Standard perform action extended by actually activated nodes.

See also:
org.openide.util.actions.CookieAction#performAction
Parameters:
activatedNodes gives array of actually activated nodes.

abstract void cern::gp::actions::support::BeanAction::performCapability GPNode  node,
Capability  capability
throws InvocationTargetException [protected, pure virtual]
 

Performs the capability for the given node.

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

Implemented in cern::gp::actions::AcceptAction, cern::gp::actions::CopyAction, cern::gp::actions::DeleteAction, cern::gp::actions::EditAction, cern::gp::actions::RemoveAction, cern::gp::actions::StopAction, cern::gp::actions::support::BeanActionSupport, and cern::gp::actions::ViewAction.

boolean cern::gp::actions::support::BeanAction::surviveFocusChange  )  [inline, protected]
 

Reimplemented in cern::gp::actions::CopyAction, cern::gp::actions::DeleteAction, and cern::laser::guiplatform::actions::EnableColumnAction.


Member Data Documentation

Class [] cern::gp::actions::support::BeanAction::capabilityClasses [private]
 

the associated capability class as an array in order to return it as an array of Cookie as NetBeans expect it to be returned

int cern::gp::actions::support::BeanAction::mode [private]
 

The mode which describe how the action is enabled when the selection contains more than one node


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:13 2009 for ACS Java API by doxygen 1.3.8