private void updateSiteInfo(final String siteRoot) {

        String top = "";
        String bottom = "";

        if (m_new) {
            top = CmsVaadinUtils.getMessageText(Messages.GUI_MODULES_RESINFO_NEW_MODULE_0);
        } else {
            top = m_module.getName();
        }

        if (siteRoot == null) {
            bottom = CmsVaadinUtils.getMessageText(Messages.GUI_MODULES_MODULE_SITE_NOT_SET_0);
        } else {
            CmsSiteManagerImpl siteManager = OpenCms.getSiteManager();
            CmsSite site = siteManager.getSiteForSiteRoot(siteRoot);
            if (site != null) {
                bottom = CmsVaadinUtils.getMessageText(
                    Messages.GUI_MODULES_MODULE_SITE_1,
                    site.getTitle() + " (" + siteRoot + ")");
            } else if (siteRoot.equals("") || siteRoot.equals("/")) {
                bottom = CmsVaadinUtils.getMessageText(Messages.GUI_MODULES_MODULE_SITE_ROOT_FOLDER_0);
            } else {
                bottom = CmsVaadinUtils.getMessageText(Messages.GUI_MODULES_MODULE_SITE_1, siteRoot);
            }
        }
        m_info.get().getTopLine().setValue(top);
        m_info.get().getBottomLine().setValue(bottom);

        for (Component c : Arrays.asList(m_moduleResources, m_excludedResources)) {
            CmsVaadinUtils.visitDescendants(c, new Predicate<Component>() {

                public boolean apply(Component comp) {

                    if (comp instanceof CmsModuleResourceSelectField) {
                        ((CmsModuleResourceSelectField)comp).updateSite(siteRoot);
                    }
                    return true;
                }
            });
        }

    }
private void updateSiteInfo ( final String siteRoot ) { String top = "" ; String bottom = "" ; if ( m_new ) { top = CmsVaadinUtils . getMessageText ( Messages . GUI_MODULES_RESINFO_NEW_MODULE_0 ) ; } else { top = m_module . getName ( ) ; } if ( siteRoot == null ) { bottom = CmsVaadinUtils . getMessageText ( Messages . GUI_MODULES_MODULE_SITE_NOT_SET_0 ) ; } else { CmsSiteManagerImpl siteManager = OpenCms . getSiteManager ( ) ; CmsSite site = siteManager . getSiteForSiteRoot ( siteRoot ) ; if ( site != null ) { bottom = CmsVaadinUtils . getMessageText ( Messages . GUI_MODULES_MODULE_SITE_1 , site . getTitle ( ) + " (" + siteRoot + ")" ) ; } else if ( siteRoot . equals ( "" ) || siteRoot . equals ( "/" ) ) { bottom = CmsVaadinUtils . getMessageText ( Messages . GUI_MODULES_MODULE_SITE_ROOT_FOLDER_0 ) ; } else { bottom = CmsVaadinUtils . getMessageText ( Messages . GUI_MODULES_MODULE_SITE_1 , siteRoot ) ; } } m_info . get ( ) . getTopLine ( ) . setValue ( top ) ; m_info . get ( ) . getBottomLine ( ) . setValue ( bottom ) ; for ( Component c : Arrays . asList ( m_moduleResources , m_excludedResources ) ) { CmsVaadinUtils . visitDescendants ( c , new Predicate < Component > ( ) { public boolean apply ( Component comp ) { if ( comp instanceof CmsModuleResourceSelectField ) { ( ( CmsModuleResourceSelectField ) comp ) . updateSite ( siteRoot ) ; } return true ; } } ) ; } }
Updates the module site info display after the module site is changed.<p>

@param siteRoot the new module site root