Package wt.security

Class WTTransferAction

java.lang.Object
wt.security.WTTransferAction
All Implemented Interfaces:
ActionListener, EventListener, Action

public final class WTTransferAction extends Object implements Action
Serves to replace 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
  • Method Details

    • installActions

      public static void installActions()
      Install WTTransferAction instances into Swing UI defaults for all Swing table, tree, list, and text components, except JEditorPane components which have to be individually addressed with installActions(javax.swing.ActionMap) as needed.

      Supported API: true
    • installActions

      public static void installActions(ActionMap actionMap)
      Install WTTransferAction instances into a given ActionMap. Generally this should only be needed in conjunction with JEditorPane or non-JTextComponent components.

      Supported API: true