/** * Builds the start HTML for a block with 3D border and optional subheadline in the dialog content area.<p> * * @param headline the headline String for the block * @return 3D block start / end segment */ @Override public String dialogBlockStart(String headline) { StringBuffer result = new StringBuffer(8); result.append("<tr><td colspan=\"5\">\n"); result.append(super.dialogBlockStart(headline)); return result.toString(); }
/** * Builds the start HTML for a block with 3D border and optional subheadline in the dialog content area.<p> * * @param headline the headline String for the block * @return 3D block start / end segment */ @Override public String dialogBlockStart(String headline) { StringBuffer result = new StringBuffer(8); result.append("<tr><td colspan=\"5\">\n"); result.append(super.dialogBlockStart(headline)); return result.toString(); }
/** * Returns the html code to build the ajax report container.<p> * * @param title the title of the report box * * @return html code */ public String buildAjaxResultContainer(String title) { StringBuffer html = new StringBuffer(512); html.append(dialogBlockStart(title)); html.append(dialogWhiteBoxStart()); html.append("<div id='ajaxreport' >"); html.append(buildAjaxWaitMessage()); html.append("</div>\n"); html.append(dialogWhiteBoxEnd()); html.append(dialogBlockEnd()); html.append(" <br>\n"); return html.toString(); }
/** * Returns the html code to build the ajax report container.<p> * * @param title the title of the report box * * @return html code */ public String buildAjaxResultContainer(String title) { StringBuffer html = new StringBuffer(512); html.append(dialogBlockStart(title)); html.append(dialogWhiteBoxStart()); html.append("<div id='ajaxreport' >"); html.append(buildAjaxWaitMessage()); html.append("</div>\n"); html.append(dialogWhiteBoxEnd()); html.append(dialogBlockEnd()); html.append(" <br>\n"); return html.toString(); }
/** * Returns the html code to build the header box.<p> * * @return html code * * @throws CmsException if something goes wrong */ public String buildLockHeaderBox() throws CmsException { StringBuffer html = new StringBuffer(512); // include resource info html.append(dialogBlockStart(null)); html.append(key(org.opencms.workplace.commons.Messages.GUI_LABEL_TITLE_0)); html.append(": "); html.append(getJsp().property("Title", getParamResource(), "")); html.append("<br>\n"); html.append(key(org.opencms.workplace.commons.Messages.GUI_LABEL_STATE_0)); html.append(": "); html.append(getState()); html.append("<br>\n"); html.append(key(org.opencms.workplace.commons.Messages.GUI_LABEL_PERMALINK_0)); html.append(": "); html.append(OpenCms.getLinkManager().getPermalink(getCms(), getParamResource())); html.append(dialogBlockEnd()); return html.toString(); }
/** * Returns the html code to build the header box.<p> * * @return html code * * @throws CmsException if something goes wrong */ public String buildLockHeaderBox() throws CmsException { StringBuffer html = new StringBuffer(512); // include resource info html.append(dialogBlockStart(null)); html.append(key(org.opencms.workplace.commons.Messages.GUI_LABEL_TITLE_0)); html.append(": "); html.append(getJsp().property("Title", getParamResource(), "")); html.append("<br>\n"); html.append(key(org.opencms.workplace.commons.Messages.GUI_LABEL_STATE_0)); html.append(": "); html.append(getState()); html.append("<br>\n"); html.append(key(org.opencms.workplace.commons.Messages.GUI_LABEL_PERMALINK_0)); html.append(": "); html.append(OpenCms.getLinkManager().getPermalink(getCms(), getParamResource())); html.append(dialogBlockEnd()); return html.toString(); }