/** * @see org.opencms.workplace.list.A_CmsListDialog#customHtmlEnd() */ @Override protected String customHtmlEnd() { StringBuffer result = new StringBuffer(256); result.append(dialogWhiteBoxEnd()); result.append(dialogBlockEnd()); result.append(dialogSpacer()); result.append(dialogButtons()); result.append(super.customHtmlEnd()); return result.toString(); }
/** * Override this to set additional parameters before forwarding or to change the forward target.<p> * * Usually you have to set the "action" parameter to another value before forwarding.<p> * * @see org.opencms.workplace.list.A_CmsListDialog#actionDialog() */ @Override public void actionDialog() throws JspException, ServletException, IOException { if (getAction() == ACTION_CONTINUE) { sendForward(nextUrl(), paramsAsParameterMap()); return; } super.actionDialog(); }
/** * Returns the resource name of the selected resource.<p> * * @return the resource name of the selected resource or null if no resource was selected */ public String getSelectedResourceName() { String resParam = getJsp().getRequest().getParameter(getListId() + LIST_RACTION_SEL); if (CmsStringUtil.isNotEmpty(resParam)) { CmsListItem item = getList().getItem(resParam); return (String)item.get(LIST_COLUMN_NAME); } return null; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#customHtmlStart() */ @Override protected String customHtmlStart() { StringBuffer result = new StringBuffer(256); result.append("<script type='text/javascript' src='"); result.append(CmsWorkplace.getSkinUri()); result.append("admin/javascript/general.js'></script>\n"); result.append("<script type='text/javascript' src='"); result.append(CmsWorkplace.getSkinUri()); result.append("editors/xmlcontent/help.js'></script>\n"); result.append(dialogBlockStart(getListTitle())); result.append(dialogWhiteBoxStart()); return result.toString(); }
protected void dialogButtonsHtml(StringBuffer result, int button, String attribute) { attribute = appendDelimiter(attribute); result.append(key(org.opencms.workplace.explorer.Messages.GUI_BUTTON_ENDWIZARD_0) + "\""); if (attribute.toLowerCase().indexOf("onclick") == -1) { result.append(" onclick=\"submitAction('" + DIALOG_CONTINUE + "', form, '"); result.append(getListId()); result.append("-form');\""); case BUTTON_NEXT: result.append("<input name='" + DIALOG_CONTINUE + "' type=\"button\" value=\""); result.append(key(org.opencms.workplace.explorer.Messages.GUI_BUTTON_NEXTSCREEN_0) + "\""); if (attribute.toLowerCase().indexOf("onclick") == -1) { result.append(" onclick=\"submitAction('" + DIALOG_CONTINUE + "', form, '"); result.append(getListId()); result.append("-form');\""); case BUTTON_CANCEL: result.append("<input name='" + DIALOG_CANCEL + "' type=\"button\" value=\""); result.append(key(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CANCEL_0) + "\""); if (attribute.toLowerCase().indexOf("onclick") == -1) { result.append(" onclick=\"submitAction('" + DIALOG_CANCEL + "', form, '"); result.append(getListId()); result.append("-form');\"");
/** * Builds a default button row with a continue and cancel button.<p> * * Override this to have special buttons for your dialog.<p> * * @return the button row */ public String dialogButtons() { return dialogButtons(new int[] {BUTTON_CONTINUE, BUTTON_CANCEL}, new String[] {"", ""}); }
/** * Returns the resource name of the selected resource.<p> * * @return the resource name of the selected resource or null if no resource was selected */ public String getSelectedResourceName() { String resParam = getJsp().getRequest().getParameter(getListId() + LIST_RACTION_SEL); if (CmsStringUtil.isNotEmpty(resParam)) { CmsListItem item = getList().getItem(resParam); return (String)item.get(LIST_COLUMN_NAME); } return null; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#customHtmlStart() */ @Override protected String customHtmlStart() { StringBuffer result = new StringBuffer(256); result.append("<script type='text/javascript' src='"); result.append(CmsWorkplace.getSkinUri()); result.append("admin/javascript/general.js'></script>\n"); result.append("<script type='text/javascript' src='"); result.append(CmsWorkplace.getSkinUri()); result.append("editors/xmlcontent/help.js'></script>\n"); result.append(dialogBlockStart(getListTitle())); result.append(dialogWhiteBoxStart()); return result.toString(); }
protected void dialogButtonsHtml(StringBuffer result, int button, String attribute) { attribute = appendDelimiter(attribute); result.append(key(org.opencms.workplace.explorer.Messages.GUI_BUTTON_ENDWIZARD_0) + "\""); if (attribute.toLowerCase().indexOf("onclick") == -1) { result.append(" onclick=\"submitAction('" + DIALOG_CONTINUE + "', form, '"); result.append(getListId()); result.append("-form');\""); case BUTTON_NEXT: result.append("<input name='" + DIALOG_CONTINUE + "' type=\"button\" value=\""); result.append(key(org.opencms.workplace.explorer.Messages.GUI_BUTTON_NEXTSCREEN_0) + "\""); if (attribute.toLowerCase().indexOf("onclick") == -1) { result.append(" onclick=\"submitAction('" + DIALOG_CONTINUE + "', form, '"); result.append(getListId()); result.append("-form');\""); case BUTTON_CANCEL: result.append("<input name='" + DIALOG_CANCEL + "' type=\"button\" value=\""); result.append(key(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CANCEL_0) + "\""); if (attribute.toLowerCase().indexOf("onclick") == -1) { result.append(" onclick=\"submitAction('" + DIALOG_CANCEL + "', form, '"); result.append(getListId()); result.append("-form');\"");
/** * Builds a default button row with a continue and cancel button.<p> * * Override this to have special buttons for your dialog.<p> * * @return the button row */ public String dialogButtons() { return dialogButtons(new int[] {BUTTON_CONTINUE, BUTTON_CANCEL}, new String[] {"", ""}); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#customHtmlEnd() */ @Override protected String customHtmlEnd() { StringBuffer result = new StringBuffer(256); result.append(dialogWhiteBoxEnd()); result.append(dialogBlockEnd()); result.append(dialogSpacer()); result.append(dialogButtons()); result.append(super.customHtmlEnd()); return result.toString(); }
/** * Override this to set additional parameters before forwarding or to change the forward target.<p> * * Usually you have to set the "action" parameter to another value before forwarding.<p> * * @see org.opencms.workplace.list.A_CmsListDialog#actionDialog() */ @Override public void actionDialog() throws JspException, ServletException, IOException { if (getAction() == ACTION_CONTINUE) { sendForward(nextUrl(), paramsAsParameterMap()); return; } super.actionDialog(); }