View Javadoc

1   package org.catacomb.druid.swing;
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 EmptyTree implements Tree, TreeNode {
9   
10      public TreeNode getRoot() {
11          return this;
12      }
13  
14  
15      public int getRootPolicy() {
16          return HIDE_ROOT;
17      }
18  
19  
20      public void setTreeChangeReporter(TreeChangeReporter tcr) {
21  
22      }
23  
24  
25      public Object getParent() {
26          return null;
27      }
28  
29  
30      public int getChildCount() {
31          return 0;
32      }
33  
34  
35      public Object getChild(int index) {
36          return null;
37      }
38  
39  
40      public int getIndexOfChild(Object child) {
41          return 0;
42      }
43  
44  
45      public boolean isLeaf() {
46          return true;
47      }
48  
49  
50      public Object[] getObjectPath(String s, boolean b) {
51          return null;
52      }
53  
54  }