

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] |
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) :
getName iconResource Subclasses must overwrite the following abstract methods :
performAction(GPNode[]) 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.
| cern::gp::actions::support::NodeAction::NodeAction | ( | ) | [inline, protected] |
Creates a new BeanAction linked a the given capabilityClass and with default mode MODE_ANY
| capabilityClass | the capability class associated with this action |
| 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()
| boolean cern::gp::actions::support::NodeAction::enable | ( | Node[] | activatedNodes | ) | [inline, protected] |
The action will only be enabled if at least one GPNode is selected.
| activatedNodes | gives array of actually activated nodes. |
Reimplemented in cern::laser::guiplatform::actions::category::AddCategoryAction, cern::laser::guiplatform::actions::category::AddSubCategoriesAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::CategoryCopyOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, cern::laser::guiplatform::actions::category::RemoveCategoryAction, cern::laser::guiplatform::actions::category::RemoveSubCategoriesAction, cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction, cern::laser::test::CopyNodesActionAction, and cern::laser::test::ExplorerIssue::MyNodeAction.
| HelpCtx cern::gp::actions::support::NodeAction::getHelpCtx | ( | ) | [inline] |
Help context where to find more about the action.
Reimplemented in cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction, cern::laser::guiplatform::actions::configuration::ConfigurationLoadAction, cern::laser::guiplatform::actions::configuration::ConfigurationSetAsDefaultAction, cern::laser::test::CopyNodesActionAction, and cern::laser::test::ExplorerIssue::MyNodeAction.
| String cern::gp::actions::support::NodeAction::getName | ( | ) | [inline] |
Human presentable name of the action. This should be presented as an item in a menu.
Reimplemented in cern::laser::guiplatform::actions::category::AddCategoryAction, cern::laser::guiplatform::actions::category::AddSubCategoriesAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::CategoryCopyOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, cern::laser::guiplatform::actions::category::RemoveCategoryAction, cern::laser::guiplatform::actions::category::RemoveSubCategoriesAction, 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, cern::laser::guiplatform::actions::filters::EditFilterAction, cern::laser::test::CopyNodesActionAction, cern::laser::test::ExplorerIssue::MyNodeAction, and cern::laser::test::ShowDetailsAction.
| String cern::gp::actions::support::NodeAction::iconResource | ( | ) | [inline, protected] |
Returns the pathname of the icon to use to display this action
Reimplemented in cern::laser::guiplatform::actions::category::AddCategoryAction, cern::laser::guiplatform::actions::category::AddSubCategoriesAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::CategoryCopyOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, cern::laser::guiplatform::actions::category::RemoveCategoryAction, cern::laser::guiplatform::actions::category::RemoveSubCategoriesAction, 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, cern::laser::guiplatform::actions::filters::EditFilterAction, and cern::laser::test::CopyNodesActionAction.
| abstract void cern::gp::actions::support::NodeAction::performAction | ( | GPNode[] | activatedNodes | ) | [protected, pure virtual] |
Performs the action for the given nodes.
| 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::AddCategoryAction, cern::laser::guiplatform::actions::category::AddSubCategoriesAction, cern::laser::guiplatform::actions::category::CategoryCopyAllOverNodesAction, cern::laser::guiplatform::actions::category::DeleteAllChoosenCategoryAction, cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, cern::laser::guiplatform::actions::category::RemoveCategoryAction, cern::laser::guiplatform::actions::category::RemoveSubCategoriesAction, cern::laser::guiplatform::actions::category::ShowAlarmByCategoryAction, and cern::laser::test::ShowDetailsAction.
| 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.
| activatedNodes | gives array of actually activated nodes. |
References EMPTY_GPNODE_ARRAY.
| boolean cern::gp::actions::support::NodeAction::surviveFocusChange | ( | ) | [inline, protected] |
final GPNode [] cern::gp::actions::support::NodeAction::EMPTY_GPNODE_ARRAY = new GPNode[0] [static, private] |
Referenced by performAction().
1.6.2