@Override
    protected void onChangeChildren() {

        super.onChangeChildren();

        if (m_openerForNonNavigationStyle == null) {
            // happens when initializing
            return;
        }
        removeInvalidChildren();
        boolean hasChildren = false;
        boolean hasNavChildren = false;
        for (Widget childWidget : m_children) {
            if (childWidget instanceof CmsSitemapTreeItem) {
                hasChildren = true;
                CmsSitemapTreeItem treeItem = (CmsSitemapTreeItem)childWidget;
                if (treeItem.getSitemapEntry().isInNavigation()) {
                    hasNavChildren = true;
                    break; // both flags set to true, no more iterations needed
                }
            }
        }
        m_styleHasChildren.setValue(hasChildren ? CSS.hasChildren() : CSS.hasNoChildren());
        m_styleHasNavChildren.setValue(hasNavChildren ? CSS.hasNavChildren() : CSS.hasNoNavChildren());
    }
@ Override protected void onChangeChildren ( ) { super . onChangeChildren ( ) ; if ( m_openerForNonNavigationStyle == null ) { return ; } removeInvalidChildren ( ) ; boolean hasChildren = false ; boolean hasNavChildren = false ; for ( Widget childWidget : m_children ) { if ( childWidget instanceof CmsSitemapTreeItem ) { hasChildren = true ; CmsSitemapTreeItem treeItem = ( CmsSitemapTreeItem ) childWidget ; if ( treeItem . getSitemapEntry ( ) . isInNavigation ( ) ) { hasNavChildren = true ; break ; } } } m_styleHasChildren . setValue ( hasChildren ? CSS . hasChildren ( ) : CSS . hasNoChildren ( ) ) ; m_styleHasNavChildren . setValue ( hasNavChildren ? CSS . hasNavChildren ( ) : CSS . hasNoNavChildren ( ) ) ; }
@see org.opencms.gwt.client.ui.tree.CmsLazyTreeItem#onChangeChildren()