public void addChild ( final Node ... nodes ) { if ( nodes . length == 0 ) { return ; // nothing to add } for ( Node node : nodes ) { node . detachFromParent ( ) ; node . parentNode = this ; initChildNodes ( node ) ; childNodes . add ( node ) ; } reindexChildrenOnAdd ( nodes . length ) ; }
Appends several child nodes at once . Reindex is done only once after all children are added .