public class FactorTransferHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
Modifier and Type | Field and Description |
---|---|
protected SensitivityInputUI |
sensitivityInputUI
Associated ui
|
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
Constructor and Description |
---|
FactorTransferHandler(SensitivityInputUI sensitivityInputUI)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(JComponent cp,
DataFlavor[] df) |
protected Transferable |
createTransferable(JComponent cp)
Get selected task in tree, and build Transferable object for it.
|
protected void |
exportDone(JComponent cp,
Transferable transferable,
int type) |
int |
getSourceActions(JComponent component) |
boolean |
importData(JComponent component,
Transferable transferable) |
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
protected SensitivityInputUI sensitivityInputUI
public FactorTransferHandler(SensitivityInputUI sensitivityInputUI)
sensitivityInputUI
- associated uipublic boolean canImport(JComponent cp, DataFlavor[] df)
canImport
in class TransferHandler
public boolean importData(JComponent component, Transferable transferable)
importData
in class TransferHandler
protected Transferable createTransferable(JComponent cp)
createTransferable
in class TransferHandler
cp
- componentprotected void exportDone(JComponent cp, Transferable transferable, int type)
exportDone
in class TransferHandler
public int getSourceActions(JComponent component)
getSourceActions
in class TransferHandler
Copyright © 1999–2020 CodeLutin. All rights reserved.