Package wt.security
Class WTTransferAction
java.lang.Object
wt.security.WTTransferAction
- All Implemented Interfaces:
ActionListener,EventListener,Action
Serves to replace
Supported API: true
TransferHandler.getCutAction(),
TransferHandler.getCopyAction(), and
TransferHandler.getPasteAction(), so as to use
AWTAccess.getSystemClipboard() to access the system clipboard. If
this fails then we fall back to the default cut, copy, and paste actions
provided by TransferHandler.
Supported API: true
-
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Method Summary
Modifier and TypeMethodDescriptionstatic voidInstall WTTransferAction instances into Swing UI defaults for all Swing table, tree, list, and text components, exceptJEditorPanecomponents which have to be individually addressed withinstallActions(javax.swing.ActionMap)as needed.static voidinstallActions(ActionMap actionMap) Install WTTransferAction instances into a givenActionMap.
-
Method Details
-
installActions
public static void installActions()Install WTTransferAction instances into Swing UI defaults for all Swing table, tree, list, and text components, exceptJEditorPanecomponents which have to be individually addressed withinstallActions(javax.swing.ActionMap)as needed.
Supported API: true -
installActions
Install WTTransferAction instances into a givenActionMap. Generally this should only be needed in conjunction withJEditorPaneor non-JTextComponentcomponents.
Supported API: true
-