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] |
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.
|
Creates a new BeanAction linked a the given
|
|
returns a Button that can invoke this action, and that is enabled or disabled properly. This is analogous to getMenuItemPresenter() or getToolBarPresenter()
|
|
The action will only be enabled if at least one GPNode is selected.
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.
|
|
Help context where to find more about the 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.
|
|
|
|
Performs the action for the given nodes.
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.
|
|
Standard perform action extended by actually activated nodes. Only actual instance of GPNode are taking into account by this implementation. The other are ignored.
|
|
Reimplemented in cern::laser::guiplatform::actions::category::DeleteChoosenCategoryAction, and cern::laser::guiplatform::actions::filters::DeleteFilterAction.
|
|
|