Class TagTransferHandler
java.lang.Object
javax.swing.TransferHandler
com.inductiveautomation.ignition.client.util.gui.tree.AbstractTreeTransferHandler
com.inductiveautomation.ignition.designer.tags.tree.TagTransferHandler
- All Implemented Interfaces:
DropTargetListener
,Serializable
,EventListener
- Direct Known Subclasses:
TagStructurePanel.UdtTransferHandler
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Designed to import Vision client tags via XML textstatic class
static class
static class
static class
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 pathTarget) protected boolean
canStartDrag
(TreePath[] paths) createTransferable
(JComponent c, boolean drag) createTransferable
(JComponent c, int action) protected Transferable
createTransferableForCutCopy
(TreePath[] paths) protected Transferable
createTransferableForCutCopy
(TreePath[] paths, int action) protected Transferable
createTransferableForDrag
(TreePath[] paths) protected boolean
executeDrop
(AutoscrollingJTree tree, Transferable transferable, TreePath parentTreePath, int action) void
exportToClipboard
(JComponent comp, Clipboard clip, int action) Copied from super so that it calls createTransferableForCutCopy instead of the normal one.int
getSourceActions
(TreePath[] paths) Override to provide the actions available for the given pathsprotected BrowseTreeNode
getTypesNode
(BrowseTreeNode node) boolean
importData
(JComponent comp, Transferable t) boolean
isAcceptableDropFlavor
(List<DataFlavor> flavors) protected boolean
Methods inherited from class com.inductiveautomation.ignition.client.util.gui.tree.AbstractTreeTransferHandler
clearHighlight, createTransferable, dragEnter, dragExit, dragOver, drawHighlight, drop, dropActionChanged, getSourceActions, pathFor
Methods inherited from class javax.swing.TransferHandler
canImport, canImport, exportAsDrag, exportDone, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Constructor Details
-
TagTransferHandler
-
-
Method Details
-
executeDrop
protected boolean executeDrop(AutoscrollingJTree tree, Transferable transferable, TreePath parentTreePath, int action) - Specified by:
executeDrop
in classAbstractTreeTransferHandler
-
getTypesNode
-
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
-
isTagNode
-
exportToClipboard
public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException Description copied from class:AbstractTreeTransferHandler
Copied from super so that it calls createTransferableForCutCopy instead of the normal one.- Overrides:
exportToClipboard
in classAbstractTreeTransferHandler
- Throws:
IllegalStateException
-
createTransferable
- Overrides:
createTransferable
in classAbstractTreeTransferHandler
-
createTransferable
-
createTransferableForCutCopy
-
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 pathTarget) - Specified by:
canPerformAction
in classAbstractTreeTransferHandler
-
isAcceptableDropFlavor
-
importData
- Overrides:
importData
in classTransferHandler
-