public class ToolsAction extends SystemAction implements ContextAwareAction, Presenter.Menu, Presenter.Popup
NodeActions or CookieActions so that they will
be enabled based on the node selection, i.e. the node containing this popup.
It is desirable for most nodes to include this action somewhere in their popup menu.
Note: you do not need to touch this class to add a service action!
Just register your action into UI/ToolActions layer folder
(read more about layers)
since version 6.15.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ToolsAction.Model
Deprecated.
Useless, see
ActionManager. |
Presenter.Menu, Presenter.ToolbarPROP_ENABLED, PROP_ICONACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
ToolsAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent ev) |
Action |
createContextAwareInstance(Lookup actionContext) |
HelpCtx |
getHelpCtx() |
JMenuItem |
getMenuPresenter() |
String |
getName() |
JMenuItem |
getPopupPresenter() |
protected void |
initialize() |
static void |
setModel(ToolsAction.Model m)
Deprecated.
Useless, see
ActionManager. |
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, iconResource, isEnabled, linkActions, putValue, setEnabled, setIconaddNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removeNotify, removePropertyChangeListener, reset, writeExternal, writeReplaceclone, getClass, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected void initialize()
initialize in class SystemActionpublic String getName()
getName in class SystemActionpublic HelpCtx getHelpCtx()
getHelpCtx in interface HelpCtx.ProvidergetHelpCtx in class SystemActionpublic JMenuItem getMenuPresenter()
getMenuPresenter in interface Presenter.Menupublic JMenuItem getPopupPresenter()
getPopupPresenter in interface Presenter.Popuppublic void actionPerformed(ActionEvent ev)
actionPerformed in interface ActionListeneractionPerformed in class SystemActionpublic Action createContextAwareInstance(Lookup actionContext)
createContextAwareInstance in interface ContextAwareAction@Deprecated public static void setModel(ToolsAction.Model m)
ActionManager.Built on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.