cern::gp::actions::support::NodeAction Class Reference

Inheritance diagram for cern::gp::actions::support::NodeAction:
Inheritance graph
[legend]
Collaboration diagram for cern::gp::actions::support::NodeAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

 NodeAction ()
String iconResource ()
boolean surviveFocusChange ()
boolean enable (Node[] activatedNodes)
void performAction (final Node[] activatedNodes)
abstract void performAction (GPNode[] activatedNodes)

Static Private Attributes

static final GPNode[] EMPTY_GPNODE_ARRAY = new GPNode[0]

Detailed Description

Generic action that should be used as a parent class for all actions linked to nodes 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 :

The action will only be enable if at least one GPNode is in the selection. It is possible to change the behavior of the enable by overriding the enable method.

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

Constructor & Destructor Documentation

cern::gp::actions::support::NodeAction::NodeAction (  )  [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

Member Function Documentation

JButton cern::gp::actions::support::NodeAction::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
boolean cern::gp::actions::support::NodeAction::enable ( Node[]  activatedNodes  )  [inline, protected]
HelpCtx cern::gp::actions::support::NodeAction::getHelpCtx (  )  [inline]
String cern::gp::actions::support::NodeAction::getName (  )  [inline]
String cern::gp::actions::support::NodeAction::iconResource (  )  [inline, protected]
abstract void cern::gp::actions::support::NodeAction::performAction ( GPNode[]  activatedNodes  )  [protected, pure virtual]
void cern::gp::actions::support::NodeAction::performAction ( final Node[]  activatedNodes  )  [inline, protected]

Standard perform action extended by actually activated nodes. Only actual instance of GPNode are taking into account by this implementation. The other are ignored.

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

References EMPTY_GPNODE_ARRAY.

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

Member Data Documentation

Referenced by performAction().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2