FileDocCategorySizeDatePackage
TransferableTreeNode.javaAPI DocExample986Thu Oct 24 20:14:28 BST 2002None

TransferableTreeNode

public class TransferableTreeNode extends Object implements Transferable

Fields Summary
public static DataFlavor
TREE_PATH_FLAVOR
DataFlavor[]
flavors
TreePath
path
Constructors Summary
public TransferableTreeNode(TreePath tp)

						   
     
    path = tp;
  
Methods Summary
public synchronized java.lang.ObjectgetTransferData(java.awt.datatransfer.DataFlavor flavor)

    if (isDataFlavorSupported(flavor)) {
      return (Object)path;
    } else {
      throw new UnsupportedFlavorException(flavor);
    }
  
public synchronized java.awt.datatransfer.DataFlavor[]getTransferDataFlavors()

    return flavors;
  
public booleanisDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)

    return (flavor.getRepresentationClass() == TreePath.class);