net.sf.taverna.t2.lang.ui
Class CTransferableTreePath

java.lang.Object
  extended by net.sf.taverna.t2.lang.ui.CTransferableTreePath
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class CTransferableTreePath
extends java.lang.Object
implements java.awt.datatransfer.Transferable

This represents a TreePath (a node in a JTree) that can be transferred between a drag source and a drop target.


Field Summary
static java.awt.datatransfer.DataFlavor TREEPATH_FLAVOR
           
 
Constructor Summary
CTransferableTreePath(javax.swing.tree.TreePath path)
          Constructs a transferrable tree path object for the specified path.
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TREEPATH_FLAVOR

public static final java.awt.datatransfer.DataFlavor TREEPATH_FLAVOR
Constructor Detail

CTransferableTreePath

public CTransferableTreePath(javax.swing.tree.TreePath path)
Constructs a transferrable tree path object for the specified path.

Method Detail

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

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