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, setDragImageOffsetprotected SensitivityInputUI sensitivityInputUI
public FactorTransferHandler(SensitivityInputUI sensitivityInputUI)
sensitivityInputUI - associated uipublic boolean canImport(JComponent cp, DataFlavor[] df)
canImport in class TransferHandlerpublic boolean importData(JComponent component, Transferable transferable)
importData in class TransferHandlerprotected Transferable createTransferable(JComponent cp)
createTransferable in class TransferHandlercp - componentprotected void exportDone(JComponent cp, Transferable transferable, int type)
exportDone in class TransferHandlerpublic int getSourceActions(JComponent component)
getSourceActions in class TransferHandlerCopyright © 1999–2015 CodeLutin. All rights reserved.