Example usage for Java javax.swing TransferHandler fields, constructors, methods, implement or subclass
The text is from its open source code.
int | COPY An int representing a "copy" transfer action. |
int | MOVE An int representing a "move" transfer action. |
int | COPY_OR_MOVE An int representing a source action capability of either "copy" or "move". |
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. |
boolean | canImport(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. |
void | exportAsDrag(JComponent comp, InputEvent e, int action) Causes the Swing drag support to be initiated. |
void | exportToClipboard(JComponent comp, Clipboard clip, int action) Causes a transfer from the given component to the given clipboard. |
Action | getCopyAction() Returns an Action that performs copy operations to the clipboard. |
Action | getCutAction() Returns an Action that performs cut operations to the clipboard. |
Action | getPasteAction() Returns an Action that performs paste operations from the clipboard. |
boolean | importData(JComponent comp, Transferable t) Causes a transfer to a component from a clipboard or a DND drop operation. |
boolean | importData(TransferSupport support) Causes a transfer to occur from a clipboard or a drag and drop operation. |