ActionListener
, Externalizable
, Serializable
, EventListener
, Action
, org.openide.util.actions.Presenter
, org.openide.util.actions.Presenter.Menu
, org.openide.util.actions.Presenter.Popup
, org.openide.util.actions.Presenter.Toolbar
, org.openide.util.ContextAwareAction
, org.openide.util.HelpCtx.Provider
public class NewTemplateAction
extends org.openide.util.actions.NodeAction
DataObject.isTemplate()
,
Serialized FormModifier and Type | Class | Description |
---|---|---|
static interface |
NewTemplateAction.Cookie |
Cookie that can be implemented by a node if it wishes to have a
special templates wizard.
|
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 | Description |
---|---|
NewTemplateAction() |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
asynchronous() |
|
Action |
createContextAwareInstance(org.openide.util.Lookup actionContext) |
Implements
ContextAwareAction interface method. |
protected boolean |
enable(org.openide.nodes.Node[] activatedNodes) |
|
org.openide.util.HelpCtx |
getHelpCtx() |
|
JMenuItem |
getMenuPresenter() |
|
String |
getName() |
|
JMenuItem |
getPopupPresenter() |
|
static org.openide.nodes.Node |
getTemplateRoot() |
Create a hierarchy of templates.
|
Component |
getToolbarPresenter() |
|
protected void |
performAction(org.openide.nodes.Node[] activatedNodes) |
accept, addPropertyChangeListener, getValue, putValue, removePropertyChangeListener
actionPerformed, addNotify, getActivatedNodes, initialize, isEnabled, performAction, removeNotify, setEnabled, surviveFocusChange
clone, getClass, notify, notifyAll, toString, wait, wait, wait
protected void performAction(org.openide.nodes.Node[] activatedNodes)
performAction
in class org.openide.util.actions.NodeAction
protected boolean asynchronous()
asynchronous
in class org.openide.util.actions.CallableSystemAction
protected boolean enable(org.openide.nodes.Node[] activatedNodes)
enable
in class org.openide.util.actions.NodeAction
public String getName()
getName
in class org.openide.util.actions.SystemAction
public org.openide.util.HelpCtx getHelpCtx()
getHelpCtx
in interface org.openide.util.HelpCtx.Provider
getHelpCtx
in class org.openide.util.actions.SystemAction
public JMenuItem getMenuPresenter()
getMenuPresenter
in interface org.openide.util.actions.Presenter.Menu
getMenuPresenter
in class org.openide.util.actions.CallableSystemAction
public Component getToolbarPresenter()
getToolbarPresenter
in interface org.openide.util.actions.Presenter.Toolbar
getToolbarPresenter
in class org.openide.util.actions.CallableSystemAction
public JMenuItem getPopupPresenter()
getPopupPresenter
in interface org.openide.util.actions.Presenter.Popup
getPopupPresenter
in class org.openide.util.actions.CallableSystemAction
public static org.openide.nodes.Node getTemplateRoot()
public Action createContextAwareInstance(org.openide.util.Lookup actionContext)
ContextAwareAction
interface method.createContextAwareInstance
in interface org.openide.util.ContextAwareAction
createContextAwareInstance
in class org.openide.util.actions.NodeAction
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.