Class ScriptTransferHandler
java.lang.Object
javax.swing.TransferHandler
fr.ifremer.isisfish.ui.script.model.ScriptTransferHandler
- All Implemented Interfaces:
Serializable
Transfer handler used to transfer tasks in table.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
-
Field Summary
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canImport
(JComponent cp, DataFlavor[] df) protected Transferable
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) Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Field Details
-
scriptUI
-
-
Constructor Details
-
ScriptTransferHandler
Constructor.- Parameters:
scriptUI
- scriptUI
-
-
Method Details
-
canImport
- Overrides:
canImport
in classTransferHandler
-
importData
- Overrides:
importData
in classTransferHandler
-
createTransferable
Get selected task in tree, and build Transferable object for it.- Overrides:
createTransferable
in classTransferHandler
- Parameters:
cp
- component- Returns:
- transferable instance for selected task
-
exportDone
- Overrides:
exportDone
in classTransferHandler
-
getSourceActions
- Overrides:
getSourceActions
in classTransferHandler
-