public void updateSitePath(String sitePath) {

        String newSubTitle = getDisplayedUrl(sitePath);
        removeInvalidChildren();
        getListItemWidget().setSubtitleLabel(newSubTitle);
        String name = getName(sitePath);
        setId(name);
        getListItemWidget().setAdditionalInfoValue(1, name);
        if (getLoadState() == LoadState.LOADED) {
            for (int i = 0; i < getChildCount(); i++) {
                CmsSitemapTreeItem item = (CmsSitemapTreeItem)getChild(i);
                if ((item != null)
                    && (CmsSitemapView.getInstance().getController().getEntryById(item.getEntryId()) != null)) {
                    String path = CmsStringUtil.joinPaths(sitePath, CmsResource.getName(item.getSitePath()));
                    item.updateSitePath(path);
                }
            }
        }
        getListItemWidget().updateTruncation();
    }
public void updateSitePath ( String sitePath ) { String newSubTitle = getDisplayedUrl ( sitePath ) ; removeInvalidChildren ( ) ; getListItemWidget ( ) . setSubtitleLabel ( newSubTitle ) ; String name = getName ( sitePath ) ; setId ( name ) ; getListItemWidget ( ) . setAdditionalInfoValue ( 1 , name ) ; if ( getLoadState ( ) == LoadState . LOADED ) { for ( int i = 0 ; i < getChildCount ( ) ; i ++ ) { CmsSitemapTreeItem item = ( CmsSitemapTreeItem ) getChild ( i ) ; if ( ( item != null ) && ( CmsSitemapView . getInstance ( ) . getController ( ) . getEntryById ( item . getEntryId ( ) ) != null ) ) { String path = CmsStringUtil . joinPaths ( sitePath , CmsResource . getName ( item . getSitePath ( ) ) ) ; item . updateSitePath ( path ) ; } } } getListItemWidget ( ) . updateTruncation ( ) ; }
Updates the recursively the site path.<p>

@param sitePath the new site path to set