/** * Generates the dialog starting html code.<p> * * @return html code */ protected String defaultActionHtml() { StringBuffer result = new StringBuffer(2048); result.append(defaultActionHtmlStart()); result.append(defaultActionHtmlContent()); result.append(defaultActionHtmlEnd()); return result.toString(); }
/** * Display method for two list dialogs.<p> * * @throws JspException if dialog actions fail * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page * @throws ServletException in case of errros forwarding to the required result page */ public void displayDialog() throws JspException, IOException, ServletException { displayDialog(false); }
lists.add(contentDiff); lists.add(propertyDiff); CmsMultiListDialog threeLists = new CmsMultiListDialog(lists); threeLists.displayDialog(true); if (threeLists.isForwarded()) { return; threeLists.writeDialog(); } else if (resourceType instanceof CmsResourceTypeImage) { twoLists.displayDialog(true); if (twoLists.isForwarded()) { return; twoLists.writeDialog(); twoLists.displayDialog(true); if (twoLists.isForwarded()) { return; twoLists.writeDialog(); CmsMultiListDialog twoLists = new CmsMultiListDialog(lists); twoLists.displayDialog(true); if (twoLists.isForwarded()) { return;
/** * Generates the dialog starting html code.<p> * * @return html code */ protected String defaultActionHtmlStart() { return m_activeWp.getList().listJs() + m_activeWp.dialogContentStart(getActiveWp().getParamTitle()); } }
/** * Writes the dialog html code, only if the <code>{@link org.opencms.workplace.CmsDialog#ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page */ public void writeDialog() throws IOException { JspWriter out = m_activeWp.getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Display method for two list dialogs, executes actions, but only displays if needed.<p> * * @param writeLater if <code>true</code> no output is written, * you have to call manually the <code>{@link #defaultActionHtml()}</code> method. * * @throws JspException if dialog actions fail * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page * @throws ServletException in case of errros forwarding to the required result page */ public void displayDialog(boolean writeLater) throws JspException, IOException, ServletException { // perform the active list actions m_activeWp.actionDialog(); if (m_activeWp.isForwarded()) { return; } Iterator i = m_wps.iterator(); while (i.hasNext()) { A_CmsListDialog wp = (A_CmsListDialog)i.next(); wp.refreshList(); } if (writeLater) { return; } writeDialog(); }
CmsMultiListDialog threeLists = new CmsMultiListDialog(lists); threeLists.displayDialog(true); if (threeLists.isForwarded()) { return; threeLists.writeDialog(); } else if (resourceType instanceof CmsResourceTypeImage) { twoLists.displayDialog(true); if (twoLists.isForwarded()) { return; twoLists.writeDialog(); twoLists.displayDialog(true); if (twoLists.isForwarded()) { return; twoLists.writeDialog(); CmsMultiListDialog twoLists = new CmsMultiListDialog(lists); twoLists.displayDialog(true); if (twoLists.isForwarded()) { return; twoLists.writeDialog(); if (CmsStringUtil.isNotEmpty(originalSource) && CmsStringUtil.isNotEmpty(copySource)) {
/** * Generates the dialog starting html code.<p> * * @return html code */ protected String defaultActionHtmlStart() { return m_activeWp.getList().listJs() + m_activeWp.dialogContentStart(getActiveWp().getParamTitle()); } }
/** * Writes the dialog html code, only if the <code>{@link org.opencms.workplace.CmsDialog#ACTION_DEFAULT}</code> is set.<p> * * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page */ public void writeDialog() throws IOException { JspWriter out = m_activeWp.getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); }
/** * Display method for two list dialogs, executes actions, but only displays if needed.<p> * * @param writeLater if <code>true</code> no output is written, * you have to call manually the <code>{@link #defaultActionHtml()}</code> method. * * @throws JspException if dialog actions fail * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page * @throws ServletException in case of errros forwarding to the required result page */ public void displayDialog(boolean writeLater) throws JspException, IOException, ServletException { // perform the active list actions m_activeWp.actionDialog(); if (m_activeWp.isForwarded()) { return; } Iterator<A_CmsListDialog> i = m_wps.iterator(); while (i.hasNext()) { A_CmsListDialog wp = i.next(); wp.refreshList(); } if (writeLater) { return; } writeDialog(); }
/** * Generates the dialog starting html code.<p> * * @return html code */ protected String defaultActionHtml() { StringBuffer result = new StringBuffer(2048); result.append(defaultActionHtmlStart()); result.append(defaultActionHtmlContent()); result.append(defaultActionHtmlEnd()); return result.toString(); }
/** * Display method for two list dialogs.<p> * * @throws JspException if dialog actions fail * @throws IOException if writing to the JSP out fails, or in case of errros forwarding to the required result page * @throws ServletException in case of errros forwarding to the required result page */ public void displayDialog() throws JspException, IOException, ServletException { displayDialog(false); }