Exemplo n.º 1
0
 /**
  * Add a group of child to the tree node.
  *
  * @param children
  */
 public void addChild(Object[] children) {
   for (Object element : children) {
     this.children.add(element);
     ((ATreeNode) element).setNodeParent(this);
   }
 }
Exemplo n.º 2
0
 /**
  * Add a as first child to the tree node.
  *
  * @param child
  */
 public void addAsFirstChild(Object child) {
   this.children.add(0, child);
   ((ATreeNode) child).setNodeParent(this);
 }