Class ClientTagTreeTransferHandler
java.lang.Object
javax.swing.TransferHandler
com.inductiveautomation.ignition.client.util.gui.tree.AbstractTreeTransferHandler
com.inductiveautomation.factorypmi.application.components.tagbrowsetree.ClientTagTreeTransferHandler
- All Implemented Interfaces:
DropTargetListener
,Serializable
,EventListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.client.util.gui.tree.AbstractTreeTransferHandler
highlightStroke, lastHighlight, rect, tree
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canPerformAction
(AutoscrollingJTree target, List<DataFlavor> flavors, int action, Point location, TreePath dropPath) protected boolean
canStartDrag
(TreePath[] paths) protected Transferable
createTransferableForCutCopy
(TreePath[] paths) protected Transferable
createTransferableForDrag
(TreePath[] paths) protected boolean
executeDrop
(AutoscrollingJTree tree, Transferable transferable, TreePath parentTreePath, int action) protected int
getSourceActions
(TreePath[] paths) Override to provide the actions available for the given pathsMethods inherited from class com.inductiveautomation.ignition.client.util.gui.tree.AbstractTreeTransferHandler
clearHighlight, createTransferable, createTransferable, dragEnter, dragExit, dragOver, drawHighlight, drop, dropActionChanged, exportToClipboard, getSourceActions, pathFor
Methods inherited from class javax.swing.TransferHandler
canImport, canImport, exportAsDrag, exportDone, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, importData, setDragImage, setDragImageOffset
-
Constructor Details
-
ClientTagTreeTransferHandler
-
-
Method Details
-
getSourceActions
Description copied from class:AbstractTreeTransferHandler
Override to provide the actions available for the given paths- Specified by:
getSourceActions
in classAbstractTreeTransferHandler
-
canStartDrag
- Specified by:
canStartDrag
in classAbstractTreeTransferHandler
-
createTransferableForDrag
- Specified by:
createTransferableForDrag
in classAbstractTreeTransferHandler
-
createTransferableForCutCopy
- Specified by:
createTransferableForCutCopy
in classAbstractTreeTransferHandler
-
canPerformAction
protected boolean canPerformAction(AutoscrollingJTree target, List<DataFlavor> flavors, int action, Point location, TreePath dropPath) - Specified by:
canPerformAction
in classAbstractTreeTransferHandler
-
executeDrop
protected boolean executeDrop(AutoscrollingJTree tree, Transferable transferable, TreePath parentTreePath, int action) - Specified by:
executeDrop
in classAbstractTreeTransferHandler
-