View Javadoc

1   package org.catacomb.druid.gui.base;
2   
3   import org.catacomb.interlish.structure.Tree;
4   import org.catacomb.interlish.structure.TreeChangeReporter;
5   import org.catacomb.interlish.structure.TreeNode;
6   
7   
8   public class DummyTree implements Tree, TreeNode {
9   
10  
11  
12      public void setTreeChangeReporter(TreeChangeReporter tcr) {
13  
14      }
15  
16  
17      public TreeNode getRoot() {
18          return this;
19      }
20  
21  
22      public String toString() {
23          return "dummy tree";
24      }
25  
26      public int getRootPolicy() {
27          return Tree.HIDE_ROOT;
28      }
29  
30  
31      public int getChildCount() {
32          return 0;
33      }
34  
35  
36      public Object getChild(int index) {
37          return null;
38      }
39  
40  
41      public int getIndexOfChild(Object child) {
42          return 0;
43      }
44  
45  
46      public boolean isLeaf() {
47          return true;
48      }
49  
50      public Object getParent() {
51          return null;
52      }
53  
54  
55      public Object[] getObjectPath(String s, boolean b) {
56          return null;
57      }
58  }