javax.swing
Class TransferHandler.TransferAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.TransferHandler.TransferAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable, UIResource
- Enclosing class:
- TransferHandler
- static class TransferHandler.TransferAction
- extends AbstractAction
- implements UIResource
canAccessSystemClipboard
private boolean canAccessSystemClipboard
- Indicates if it is safe to access the system clipboard. Once false,
access will never be checked again.
SandboxClipboardKey
private static Object SandboxClipboardKey
- Key used in app context to lookup Clipboard to use if access to
System clipboard is denied.
TransferHandler.TransferAction
TransferHandler.TransferAction(String name)
actionPerformed
public void actionPerformed(ActionEvent e)
- Description copied from interface:
ActionListener
- Invoked when an action occurs.
- Specified by:
actionPerformed
in interface ActionListener
getClipboard
private Clipboard getClipboard(JComponent c)
- Returns the clipboard to use for cut/copy/paste.
canAccessSystemClipboard
private boolean canAccessSystemClipboard()
- Returns true if it is safe to access the system Clipboard.
If the environment is headless or the security manager
does not allow access to the system clipboard, a private
clipboard is used.