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

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

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

Inheritance 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

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]
 

The action will only be enabled if at least one GPNode is selected.

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

Reimplemented in cern::gp::actions::MoveDownActionCopiedFromNetbeans, cern::gp::actions::MoveUpActionCopiedFromNetbeans, cern::gp::actions::OpenLocalExplorerAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, and cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction.

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

Help context where to find more about the action.

Returns:
the help context for this action

Reimplemented in cern::gp::actions::MoveDownActionCopiedFromNetbeans, cern::gp::actions::MoveUpActionCopiedFromNetbeans, cern::gp::actions::OpenLocalExplorerAction, cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction, cern::laser::guiplatform::actions::configuration::ConfigurationLoadAction, and cern::laser::guiplatform::actions::configuration::ConfigurationSetAsDefaultAction.

String cern::gp::actions::support::NodeAction::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::MoveDownActionCopiedFromNetbeans, cern::gp::actions::MoveUpActionCopiedFromNetbeans, cern::gp::actions::OpenLocalExplorerAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction, cern::laser::guiplatform::actions::configuration::ConfigurationDeleteAction, cern::laser::guiplatform::actions::configuration::ConfigurationLoadAction, cern::laser::guiplatform::actions::configuration::ConfigurationSetAsDefaultAction, cern::laser::guiplatform::actions::filters::DeleteAllFiltersAction, cern::laser::guiplatform::actions::filters::DeleteFilterAction, and cern::laser::guiplatform::actions::filters::EditFilterAction.

String cern::gp::actions::support::NodeAction::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::MoveDownAction, cern::gp::actions::MoveUpAction, cern::gp::actions::OpenLocalExplorerAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction, cern::laser::guiplatform::actions::configuration::ConfigurationDeleteAction, cern::laser::guiplatform::actions::configuration::ConfigurationLoadAction, cern::laser::guiplatform::actions::configuration::ConfigurationSetAsDefaultAction, cern::laser::guiplatform::actions::filters::DeleteAllFiltersAction, cern::laser::guiplatform::actions::filters::DeleteFilterAction, and cern::laser::guiplatform::actions::filters::EditFilterAction.

abstract void cern::gp::actions::support::NodeAction::performAction GPNode[]  activatedNodes  )  [protected, pure virtual]
 

Performs the action for the given nodes.

Parameters:
activatedNodes the non null (possibly empty) array of nodes selected at the moment the action has been triggered

Implemented in cern::gp::actions::support::ContextAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, and cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction.

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.

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

Reimplemented in cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, and cern::laser::guiplatform::actions::filters::DeleteFilterAction.


Member Data Documentation

final GPNode [] cern::gp::actions::support::NodeAction::EMPTY_GPNODE_ARRAY = new GPNode[0] [static, private]
 


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