protected void updateName(TreeElement parentNode, int index)
    {
        setName(getNodeName(parentNode, index));
        TreeElement[] children = getChildren();
        for (int i = 0; i < children.length; i++) {
            children[i].updateName(this, i);
        }
    }
protected void updateName ( TreeElement parentNode , int index ) { setName ( getNodeName ( parentNode , index ) ) ; TreeElement [ ] children = getChildren ( ) ; for ( int i = 0 ; i < children . length ; i ++ ) { children [ i ] . updateName ( this , i ) ; } }
This method will update the name of this node and all of the children node.  The name
of a node reflects it's position in the tree.
@param parentNode The parent node of this node.
@param index      the index position of this node within the parent node.