示例#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);
 }