

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 |
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) :
getName iconResource Subclasses must overwrite the following abstract methods :
performCapability | 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
| 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
| capabilityClass | the capability class associated with this action | |
| mode | the mode of this action (see modes in CookieAction) |
References capabilityClasses.
| 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).
References capabilityClasses.
| 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()
| HelpCtx cern::gp::actions::support::BeanAction::getHelpCtx | ( | ) | [inline] |
Help context where to find more about the 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.
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, cern::laser::guiplatform::actions::DisableColumnAction, 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
Reimplemented in cern::gp::actions::RemoveAction, cern::gp::actions::StopAction, cern::laser::guiplatform::actions::DisableColumnAction, 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.
| activatedNodes | gives array of actually activated nodes. |
References capabilityClasses, and performCapability().
| abstract void cern::gp::actions::support::BeanAction::performCapability | ( | GPNode | node, | |
| Capability | capability | |||
| ) | throws InvocationTargetException [protected, pure virtual] |
Performs the capability for the given node.
| 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.
Referenced by performAction().
| boolean cern::gp::actions::support::BeanAction::surviveFocusChange | ( | ) | [inline, protected] |
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
Referenced by BeanAction(), cookieClasses(), and performAction().
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
1.6.2