@Override
    public String htmlModules() {

        StringBuffer html = new StringBuffer(1024);
        Set<String> uptodate = new HashSet<String>(getUptodateModules());
        Iterator<String> itModules = sortModules(getAvailableModules().values()).iterator();
        boolean hasModules = false;
        for (int i = 0; itModules.hasNext(); i++) {
            String moduleName = itModules.next();
            CmsModule module = getAvailableModules().get(moduleName);
            if (UPDATE_ALL_MODULES || !uptodate.contains(moduleName)) {
                html.append(htmlModule(module, i));
                hasModules = true;
            } else {
                html.append("<input type='hidden' name='availableModules' value='");
                html.append(moduleName);
                html.append("'>\n");
            }
        }
        if (!hasModules) {
            html.append("\t<tr>\n");
            html.append("\t\t<td style='vertical-align: middle;'>\n");
            html.append(Messages.get().getBundle().key(Messages.GUI_WARNING_ALL_MODULES_UPTODATE_0));
            html.append("\t\t</td>\n");
            html.append("\t</tr>\n");
        }
        return html.toString();
    }
@ Override public String htmlModules ( ) { StringBuffer html = new StringBuffer ( 1024 ) ; Set < String > uptodate = new HashSet < String > ( getUptodateModules ( ) ) ; Iterator < String > itModules = sortModules ( getAvailableModules ( ) . values ( ) ) . iterator ( ) ; boolean hasModules = false ; for ( int i = 0 ; itModules . hasNext ( ) ; i ++ ) { String moduleName = itModules . next ( ) ; CmsModule module = getAvailableModules ( ) . get ( moduleName ) ; if ( UPDATE_ALL_MODULES || ! uptodate . contains ( moduleName ) ) { html . append ( htmlModule ( module , i ) ) ; hasModules = true ; } else { html . append ( "<input type='hidden' name='availableModules' value='" ) ; html . append ( moduleName ) ; html . append ( "'>\n" ) ; } } if ( ! hasModules ) { html . append ( "\t<tr>\n" ) ; html . append ( "\t\t<td style='vertical-align: middle;'>\n" ) ; html . append ( Messages . get ( ) . getBundle ( ) . key ( Messages . GUI_WARNING_ALL_MODULES_UPTODATE_0 ) ) ; html . append ( "\t\t</td>\n" ) ; html . append ( "\t</tr>\n" ) ; } return html . toString ( ) ; }
@see org.opencms.setup.CmsSetupBean#htmlModules()