/** * Returns html code for the module descriptions in help ballons.<p> * * @return html code */ public String htmlModuleHelpDescriptions() { StringBuffer html = new StringBuffer(1024); Iterator<String> itModules = sortModules(getAvailableModules().values()).iterator(); for (int i = 0; itModules.hasNext(); i++) { String moduleName = itModules.next(); CmsModule module = getAvailableModules().get(moduleName); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(module.getDescription())) { html.append(getHtmlPart("C_HELP_START", "" + i)); html.append(module.getDescription()); html.append("\n"); html.append(getHtmlPart("C_HELP_END")); html.append("\n"); } } return html.toString(); }
/** * Returns html for the given module to fill the selection list.<p> * * @param module the module to generate the code for * @param pos the position in the list * * @return html code */ protected String htmlModule(CmsModule module, int pos) { StringBuffer html = new StringBuffer(256); html.append("\t<tr>\n"); html.append("\t\t<td style='vertical-align: top;'>\n"); html.append("\t\t\t<input type='checkbox' name='availableModules' value='"); html.append(module.getName()); html.append("' checked='checked' onClick=\"checkModuleDependencies('"); html.append(module.getName()); html.append("');\">\n"); html.append("\t\t</td>\n"); html.append("\t\t<td style='vertical-align: top; width: 100%; padding-top: 4px;'>\n\t\t\t"); html.append(getDisplayForModule(module)); html.append("\n\t\t</td>\n"); html.append("\t\t<td style='vertical-align: top; text-align: right;'>\n"); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(module.getDescription())) { html.append("\t\t\t"); html.append(getHtmlHelpIcon("" + pos, "")); } html.append("\t\t</td>\n"); html.append("\t</tr>\n"); return html.toString(); }
moduleElement.addElement(N_CLASS); if (CmsStringUtil.isNotEmpty(module.getDescription())) { moduleElement.addElement(N_DESCRIPTION).addCDATA(module.getDescription()); } else { moduleElement.addElement(N_DESCRIPTION);
if (CmsStringUtil.isNotEmpty(module.getDescription())) { moduleElement.addElement(N_DESCRIPTION).addCDATA(module.getDescription()); } else { moduleElement.addElement(N_DESCRIPTION);