Java javax.swing TransferHandler fields, constructors, methods, implement or subclass

Example usage for Java javax.swing TransferHandler fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing TransferHandler.

The text is from its open source code.

Subclass

javax.swing.TransferHandler has subclasses.
Click this link to see all its subclasses.

Field

intCOPY
An int representing a "copy" transfer action.
intMOVE
An int representing a "move" transfer action.
intCOPY_OR_MOVE
An int representing a source action capability of either "copy" or "move".

Constructor

TransferHandler(String property)
Constructs a transfer handler that can transfer a Java Bean property from one component to another via the clipboard or a drag and drop operation.
TransferHandler()
Convenience constructor for subclasses.

Method

booleancanImport(TransferSupport support)
This method is called repeatedly during a drag and drop operation to allow the developer to configure properties of, and to return the acceptability of transfers; with a return value of true indicating that the transfer represented by the given TransferSupport (which contains all of the details of the transfer) is acceptable at the current time, and a value of false rejecting the transfer.
voidexportAsDrag(JComponent comp, InputEvent e, int action)
Causes the Swing drag support to be initiated.
voidexportToClipboard(JComponent comp, Clipboard clip, int action)
Causes a transfer from the given component to the given clipboard.
ActiongetCopyAction()
Returns an Action that performs copy operations to the clipboard.
ActiongetCutAction()
Returns an Action that performs cut operations to the clipboard.
ActiongetPasteAction()
Returns an Action that performs paste operations from the clipboard.
booleanimportData(JComponent comp, Transferable t)
Causes a transfer to a component from a clipboard or a DND drop operation.
booleanimportData(TransferSupport support)
Causes a transfer to occur from a clipboard or a drag and drop operation.