public class BaseTransferHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport| Modifier and Type | Field and Description |
|---|---|
protected Values |
commonValues |
protected Commands |
currentCommands |
protected GUIFactory |
currentGUI |
COPY, COPY_OR_MOVE, LINK, MOVE, NONE| Constructor and Description |
|---|
BaseTransferHandler(Values commonValues,
GUIFactory currentGUI,
Commands currentCommands) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canImport(JComponent dest,
DataFlavor[] flavors) |
protected Object |
getImport(Transferable transferable) |
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getSourceActions, getVisualRepresentation, importData, importData, setDragImage, setDragImageOffsetprotected final Commands currentCommands
protected final GUIFactory currentGUI
protected final Values commonValues
public BaseTransferHandler(Values commonValues, GUIFactory currentGUI, Commands currentCommands)
public boolean canImport(JComponent dest, DataFlavor[] flavors)
canImport in class TransferHandlerprotected Object getImport(Transferable transferable) throws Exception
ExceptionCopyright © 2017. All rights reserved.