16 package net.squiz.matrix.matrixtree;
18 import java.awt.datatransfer.*;
21 import javax.swing.tree.*;
25 public static final DataFlavor TREE_NODE_FLAVOUR
28 static DataFlavor flavors[] = { TREE_NODE_FLAVOUR };
30 private final List paths;
33 this.paths = Arrays.asList(paths);
36 public Object getTransferData(DataFlavor flavor)
37 throws UnsupportedFlavorException, IOException {
38 if (flavor.equals(TREE_NODE_FLAVOUR))
41 throw new UnsupportedFlavorException(flavor);
44 public DataFlavor[] getTransferDataFlavors() {
48 public boolean isDataFlavorSupported(DataFlavor flavor) {
49 return flavor.equals(TREE_NODE_FLAVOUR);