public class NewTemplateAction extends NodeAction
DataObject.isTemplate()
,
Serialized FormModifier and Type | Class and Description |
---|---|
static interface |
NewTemplateAction.Cookie
Cookie that can be implemented by a node if it wishes to have a
special templates wizard.
|
Presenter.Menu, Presenter.Popup, Presenter.Toolbar
PROP_ENABLED, PROP_ICON
ACCELERATOR_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 |
---|
NewTemplateAction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
asynchronous() |
Action |
createContextAwareInstance(Lookup actionContext)
Implements
ContextAwareAction interface method. |
protected boolean |
enable(Node[] activatedNodes) |
HelpCtx |
getHelpCtx() |
JMenuItem |
getMenuPresenter() |
String |
getName() |
JMenuItem |
getPopupPresenter() |
static Node |
getTemplateRoot()
Create a hierarchy of templates.
|
Component |
getToolbarPresenter() |
protected void |
performAction(Node[] activatedNodes) |
actionPerformed, addNotify, getActivatedNodes, initialize, isEnabled, performAction, removeNotify, setEnabled, surviveFocusChange
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, iconResource, linkActions, putValue, setIcon
addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removePropertyChangeListener, reset, writeExternal, writeReplace
clone, getClass, notify, notifyAll, toString, wait, wait, wait
accept, addPropertyChangeListener, getValue, putValue, removePropertyChangeListener
protected void performAction(Node[] activatedNodes)
performAction
in class NodeAction
protected boolean asynchronous()
asynchronous
in class CallableSystemAction
protected boolean enable(Node[] activatedNodes)
enable
in class NodeAction
public String getName()
getName
in class SystemAction
public HelpCtx getHelpCtx()
getHelpCtx
in interface HelpCtx.Provider
getHelpCtx
in class SystemAction
public JMenuItem getMenuPresenter()
getMenuPresenter
in interface Presenter.Menu
getMenuPresenter
in class CallableSystemAction
public Component getToolbarPresenter()
getToolbarPresenter
in interface Presenter.Toolbar
getToolbarPresenter
in class CallableSystemAction
public JMenuItem getPopupPresenter()
getPopupPresenter
in interface Presenter.Popup
getPopupPresenter
in class CallableSystemAction
public static Node getTemplateRoot()
public Action createContextAwareInstance(Lookup actionContext)
ContextAwareAction
interface method.createContextAwareInstance
in interface ContextAwareAction
createContextAwareInstance
in class NodeAction