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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanImport(TransferHandler.TransferSupport support) intbooleanThis 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:
getSourceActionsin classTransferHandler
-
canImport
- Overrides:
canImportin classTransferHandler
-
importData
This is where nodes are being dropped.- Overrides:
importDatain classTransferHandler- Parameters:
support- the object containing the details of the transfer, notnull.- Returns:
trueif the data was inserted into the tree.
-