private void setTree(ComponentTree tree) {
        synchronized (this) {
            this.tree = tree;
            for (ComponentVertex child : children) {
                child.setTree(tree);
            }
        }
    }
private void setTree ( ComponentTree tree ) { synchronized ( this ) { this . tree = tree ; for ( ComponentVertex child : children ) { child . setTree ( tree ) ; } } }
Set the reference to the common properties of this component
and all its children to the given value.

@param comp the new root