public class ShortcutTransferHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
Modifier and Type | Field and Description |
---|---|
protected ShortcutPanel |
shortcutPanel
Associated shortcut panel.
|
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
Constructor and Description |
---|
ShortcutTransferHandler(ShortcutPanel shortcutPanel)
Constructs a new shortcut panel drag and drop transfer handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(JComponent comp,
DataFlavor[] transferFlavors) |
boolean |
importData(JComponent comp,
Transferable t) |
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getSourceActions, getVisualRepresentation, importData, setDragImage, setDragImageOffset
protected ShortcutPanel shortcutPanel
public ShortcutTransferHandler(ShortcutPanel shortcutPanel)
public boolean canImport(JComponent comp, DataFlavor[] transferFlavors)
canImport
in class TransferHandler
public boolean importData(JComponent comp, Transferable t)
importData
in class TransferHandler
Copyright © 2014 Open Microscopy Environment