public static class DndTree.TreeTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Constructor and Description |
---|
TreeTransferable(DndTree tree,
javax.swing.tree.DefaultMutableTreeNode treeNode)
Create the transferable
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Get the data
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Get the flavors
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Is flavor supported
|
public TreeTransferable(DndTree tree, javax.swing.tree.DefaultMutableTreeNode treeNode)
tree
- The treetreeNode
- The node being draggedpublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
getTransferData
in interface java.awt.datatransfer.Transferable
flavor
- The flavorpublic java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
flavor
- The flavor_