public final class PasteAction extends CallbackSystemAction
topcomponent.getActionMap ().put (javax.swing.text.DefaultEditorKit.pasteAction, theActualAction);or by using the now deprecated
setPasteTypes and setActionPerformer
methods.
There is a special support for more than one type of paste to be enabled at once.
If the theActualAction returns array of actions from
getValue ("delegates") than those actions are offered as
subelements by the paste action presenter.
Presenter.Menu, Presenter.Popup, 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 |
|---|
PasteAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent ev) |
protected boolean |
asynchronous() |
Action |
createContextAwareInstance(Lookup actionContext) |
Object |
getActionMapKey() |
HelpCtx |
getHelpCtx() |
JMenuItem |
getMenuPresenter() |
String |
getName() |
PasteType[] |
getPasteTypes()
Get all paste types.
|
JMenuItem |
getPopupPresenter() |
protected String |
iconResource() |
protected void |
initialize() |
void |
setPasteTypes(PasteType[] types)
Deprecated.
Use
TopComponent.getActionMap ().put (javax.swing.text.DefaultEditorKit.pasteAction, yourPasteAction);
If you want register more paste types then use an action which delegates to
an array of PasteAction or also can delegate to an array of
org.openide.util.datatransfer.PasteType. |
getActionPerformer, getSurviveFocusChange, performAction, setActionPerformer, setSurviveFocusChangegetToolbarPresenterclearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, 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 CallbackSystemActionpublic String getName()
getName in class SystemActionpublic HelpCtx getHelpCtx()
getHelpCtx in interface HelpCtx.ProvidergetHelpCtx in class SystemActionprotected String iconResource()
iconResource in class SystemActionpublic JMenuItem getMenuPresenter()
getMenuPresenter in interface Presenter.MenugetMenuPresenter in class CallableSystemActionpublic JMenuItem getPopupPresenter()
getPopupPresenter in interface Presenter.PopupgetPopupPresenter in class CallableSystemActionpublic Action createContextAwareInstance(Lookup actionContext)
createContextAwareInstance in interface ContextAwareActioncreateContextAwareInstance in class CallbackSystemActionpublic Object getActionMapKey()
getActionMapKey in class CallbackSystemActionpublic void actionPerformed(ActionEvent ev)
actionPerformed in interface ActionListeneractionPerformed in class CallbackSystemActionprotected boolean asynchronous()
asynchronous in class CallableSystemAction@Deprecated public void setPasteTypes(PasteType[] types)
TopComponent.getActionMap ().put (javax.swing.text.DefaultEditorKit.pasteAction, yourPasteAction);
If you want register more paste types then use an action which delegates to
an array of PasteAction or also can delegate to an array of
org.openide.util.datatransfer.PasteType.types - the new types to allow, or nullpublic PasteType[] getPasteTypes()
nullBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.