Class NodeTreeTransferHandler
java.lang.Object
javax.swing.TransferHandler
com.marginallyclever.ro3.apps.nodetreeview.NodeTreeTransferHandler
- All Implemented Interfaces:
Serializable
NodeTreeTransferHandler
handles drag and drop operations for the NodeTreeView
.- 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
(TransferHandler.TransferSupport support) int
boolean
This is where nodes are being dropped.Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Constructor Details
-
NodeTreeTransferHandler
public NodeTreeTransferHandler()
-
-
Method Details
-
getSourceActions
- Overrides:
getSourceActions
in classTransferHandler
-
canImport
- Overrides:
canImport
in classTransferHandler
-
importData
This is where nodes are being dropped.- Overrides:
importData
in classTransferHandler
- Parameters:
support
- the object containing the details of the transfer, notnull
.- Returns:
true
if the data was inserted into the tree.
-