public void useNodes(Collection<Node> nodes) { // forces creation of the array ChildrenArray arr = getArray(null); arr.useNodes(this, nodes); // assign all there nodes the new children for (Node n : nodes) { n.assignTo(EntrySupportDefault.this.children, -1); n.fireParentNodeChange(null, children.parent); } }
public void useNodes (Collection nodes) { // forces creation of the array ChildrenArray arr = getArray (null); arr.useNodes (this, nodes); // assign all there nodes the new children Iterator it = nodes.iterator (); while (it.hasNext ()) { Node n = (Node)it.next (); n.assignTo (Children.this, -1); n.fireParentNodeChange (null, parent); } }
public void useNodes (Collection nodes) { // forces creation of the array ChildrenArray arr = getArray (null); arr.useNodes (this, nodes); // assign all there nodes the new children Iterator it = nodes.iterator (); while (it.hasNext ()) { Node n = (Node)it.next (); n.assignTo (Children.this, -1); n.fireParentNodeChange (null, parent); } }