1 23 24 package com.frovi.ss.Tree; 25 26 import java.util.HashMap ; 27 import java.util.List ; 28 import java.util.Map ; 29 import java.util.Vector ; 30 31 38 public abstract class BaseNode extends Object 39 { 40 41 private String title; 42 private Integer id; 43 44 private boolean container; 46 private boolean children; 47 private Vector treeStuff; 48 private boolean open = false; 49 private String openCloseKey = ""; 50 private String openCloseKeyEx = ""; 51 private String thisKey = ""; 52 private int level = 0; 53 private boolean root = false; 54 private Map parameters = new HashMap (); 55 56 57 61 public Integer getId() 62 { 63 return id; 64 } 65 66 70 public String getTitle() 71 { 72 return title; 73 } 74 75 79 public void setId(Integer id) 80 { 81 this.id = id; 82 } 83 84 88 public void setTitle(String title) 89 { 90 this.title = title; 91 } 92 93 97 public Vector getTreeStuff() { 98 return treeStuff; 99 } 100 101 public List getRowList() { 103 return treeStuff; 104 } 105 106 110 public void setTreeStuff(Vector treeStuff) { 111 this.treeStuff = treeStuff; 112 } 113 114 115 119 public boolean isOpen() { 120 return open; 121 } 122 123 127 public void setOpen(boolean open) { 128 this.open = open; 129 } 130 131 135 public int getLevel() { 136 return level; 137 } 138 139 143 public void setLevel(int level) { 144 this.level = level; 145 } 146 147 151 public String getOpenCloseKey() { 152 return openCloseKey; 153 } 154 155 159 public void setOpenCloseKey(String openCloseKey) { 160 this.openCloseKey = openCloseKey; 161 } 162 163 164 168 public boolean hasChildren() { 169 return children; 170 } 171 172 176 public void setChildren(boolean children) { 177 this.children = children; 178 } 179 180 184 public boolean isContainer() { 185 return container; 186 } 187 188 192 public void setContainer(boolean container) { 193 this.container = container; 194 } 195 196 200 public String getThisKey() 201 { 202 return thisKey; 203 } 204 205 209 public void setThisKey(String thisKey) 210 { 211 this.thisKey = thisKey; 212 } 213 214 218 public boolean isRoot() 219 { 220 return root; 221 } 222 223 227 public void setIsRoot(boolean root) 228 { 229 this.root = root; 230 } 231 232 236 public String getOpenCloseKeyEx() 237 { 238 return openCloseKeyEx; 239 } 240 241 245 public void setOpenCloseKeyEx(String openCloseKeyEx) 246 { 247 this.openCloseKeyEx = openCloseKeyEx; 248 } 249 250 public Map getParameters() 251 { 252 return parameters; 253 } 254 } 255 | Popular Tags |