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