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 |
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
|
Creates a new BeanAction linked a the given
|
|
Creates a new BeanAction linked a the given
|
|
Returns the set of capabilities supported by this action. Currently this action only support one single capability (named cookie in NetBeans).
|
|
returns a Button that can invoke this action, and that is enabled or disabled properly. This is analogous to getMenuItemPresenter() or getToolBarPresenter()
|
|
Help context where to find more about the action.
|
|
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, and cern::laser::guiplatform::actions::EnableColumnAction.
|
|
Returns the pathname of the icon to use to display this action
Reimplemented in cern::gp::actions::RemoveAction, cern::gp::actions::StopAction, and cern::laser::guiplatform::actions::EnableColumnAction.
|
|
|
|
Standard perform action extended by actually activated nodes.
|
|
Performs the capability for the given node.
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.
|
|
Reimplemented in cern::gp::actions::CopyAction, cern::gp::actions::DeleteAction, and cern::laser::guiplatform::actions::EnableColumnAction.
|
|
the associated capability class as an array in order to return it as an array of Cookie as NetBeans expect it to be returned |
|
The mode which describe how the action is enabled when the selection contains more than one node |