com.alee.extended.tree
Class AsyncTreeTransferHandler.NodesTransferable
java.lang.Object
com.alee.extended.tree.AsyncTreeTransferHandler.NodesTransferable
- All Implemented Interfaces:
- java.awt.datatransfer.Transferable, java.io.Serializable
- Enclosing class:
- AsyncTreeTransferHandler<N extends AsyncUniqueNode,T extends WebAsyncTree<N>>
public class AsyncTreeTransferHandler.NodesTransferable
- extends java.lang.Object
- implements java.awt.datatransfer.Transferable, java.io.Serializable
Custom nodes transferable used for D&D operation.
- See Also:
- Serialized Form
Field Summary |
protected java.util.List<N> |
nodes
Transferred nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
protected final java.util.List<N extends AsyncUniqueNode> nodes
- Transferred nodes.
AsyncTreeTransferHandler.NodesTransferable
public AsyncTreeTransferHandler.NodesTransferable(java.util.List<N> nodes)
- Constructs new nodes transferable with the specified nodes as data.
- Parameters:
nodes
- transferred nodes
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
throws java.awt.datatransfer.UnsupportedFlavorException
-
- Specified by:
getTransferData
in interface java.awt.datatransfer.Transferable
- Throws:
java.awt.datatransfer.UnsupportedFlavorException
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
-
- Specified by:
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
-
- Specified by:
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable