public void setRootGroups ( final List < Group > rootGroups ) { synchronized ( this . getRootGroups ( ) ) { if ( rootGroups != this . getRootGroups ( ) ) { this . getRootGroups ( ) . clear ( ) ; if ( rootGroups != null ) { this . getRootGroups ( ) . addAll ( rootGroups ) ; } } } }
Sets the modifiable list of root groups . This method clears the current list and adds all entries in the parameter list .