insensa.view
Class TestNodeList

java.lang.Object
  extended by insensa.view.TestNodeList
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.io.Serializable

public class TestNodeList
extends java.lang.Object
implements java.awt.datatransfer.Transferable, java.io.Serializable

Version:
1.0

copyright 2010
You are welcome to use/modify this code for any purposes you want so long as credit is given to me.

Author:
helloworld922

See Also:
Serialized Form

Field Summary
protected static java.awt.datatransfer.DataFlavor[] flavors
          List of flavors this DnDTreeList can be retrieved as.
protected  java.util.ArrayList<javax.swing.tree.TreePath> nodes
          Nodes to transfer
private static long serialVersionUID
           
static java.awt.datatransfer.DataFlavor TestNodeList_FLAVOR
          Data flavor that allows a DnDTreeList to be extracted from a transferable object
 
Constructor Summary
TestNodeList(java.util.ArrayList<javax.swing.tree.TreePath> nodes)
           
 
Method Summary
 java.util.ArrayList<javax.swing.tree.TreePath> getNodes()
           
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

TestNodeList_FLAVOR

public static final java.awt.datatransfer.DataFlavor TestNodeList_FLAVOR
Data flavor that allows a DnDTreeList to be extracted from a transferable object


flavors

protected static java.awt.datatransfer.DataFlavor[] flavors
List of flavors this DnDTreeList can be retrieved as. Currently only supports DnDTreeList_FLAVOR


nodes

protected java.util.ArrayList<javax.swing.tree.TreePath> nodes
Nodes to transfer

Constructor Detail

TestNodeList

public TestNodeList(java.util.ArrayList<javax.swing.tree.TreePath> nodes)
Parameters:
nodes -
Method Detail

getNodes

public java.util.ArrayList<javax.swing.tree.TreePath> getNodes()
Returns:

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Parameters:
flavor -
Returns:
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable
See Also:
Transferable.getTransferDataFlavors()

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable
Parameters:
flavor -
Returns: