public void closeAllEmptyChildren() {

        for (Widget child : m_children) {
            if (child instanceof CmsTreeItem) {
                CmsTreeItem item = (CmsTreeItem)child;
                if (item.isOpen()) {
                    if (item.getChildCount() == 0) {
                        item.setOpen(false);
                    } else {
                        item.closeAllEmptyChildren();
                    }
                }
            }
        }
    }
public void closeAllEmptyChildren ( ) { for ( Widget child : m_children ) { if ( child instanceof CmsTreeItem ) { CmsTreeItem item = ( CmsTreeItem ) child ; if ( item . isOpen ( ) ) { if ( item . getChildCount ( ) == 0 ) { item . setOpen ( false ) ; } else { item . closeAllEmptyChildren ( ) ; } } } } }
Closes all empty child entries.<p>