예제 #1
0
 public void removeChild(TreeObject child) {
   children.remove(child);
   child.setParent(null);
 }
예제 #2
0
 public void addChild(TreeObject child) {
   children.add(child);
   child.setParent(this);
 }