public class TransferableTreeNode
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Transferable
that transfers TreePath
instances.Constructor and Description |
---|
TransferableTreeNode(@NotNull javax.swing.tree.TreePath treePath)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull javax.swing.tree.TreePath |
getTransferData(@NotNull java.awt.datatransfer.DataFlavor flavor) |
@NotNull java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(@NotNull java.awt.datatransfer.DataFlavor flavor) |
public TransferableTreeNode(@NotNull @NotNull javax.swing.tree.TreePath treePath)
treePath
- the tree path being transferred@NotNull public @NotNull java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(@NotNull @NotNull java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
@NotNull public @NotNull javax.swing.tree.TreePath getTransferData(@NotNull @NotNull java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException