public class ProxyImportHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport| Modifier and Type | Field and Description |
|---|---|
protected JComponent |
comp |
protected TransferHandler |
proxy |
COPY, COPY_OR_MOVE, LINK, MOVE, NONE| Constructor and Description |
|---|
ProxyImportHandler(JComponent c,
TransferHandler th) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canImport(JComponent c,
DataFlavor[] flavors) |
int |
getSourceActions(JComponent c) |
boolean |
importData(JComponent c,
Transferable t) |
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffsetprotected JComponent comp
protected TransferHandler proxy
public ProxyImportHandler(JComponent c, TransferHandler th)
public boolean importData(JComponent c, Transferable t)
importData in class TransferHandlerpublic int getSourceActions(JComponent c)
getSourceActions in class TransferHandlerpublic boolean canImport(JComponent c, DataFlavor[] flavors)
canImport in class TransferHandlerCopyright © 2014. All Rights Reserved.