/** * @see org.opencms.workplace.list.A_CmsListIndependentJsAction#jsCode(CmsWorkplace) */ @Override public String jsCode(CmsWorkplace wp) { String url = OpenCms.getLinkManager().substituteLink( wp.getCms(), "/system/workplace/commons/list-csv.jsp?" + CmsListCsvExportDialog.PARAM_LISTCLASS + "=" + wp.getClass().getName()); String title = "CSV - " + ((A_CmsListDialog)wp).getList().getName().key(wp.getLocale()); String opts = "toolbar=no,location=no,directories=no,status=yes,menubar=0,scrollbars=yes,resizable=yes,top=150,left=660,width=450,height=450"; StringBuffer js = new StringBuffer(512); js.append("window.open('"); js.append(url); js.append("', '"); js.append(title); js.append("', '"); js.append(opts); js.append("');"); return js.toString(); } }
/** * @see org.opencms.workplace.list.A_CmsListIndependentJsAction#jsCode(CmsWorkplace) */ @Override public String jsCode(CmsWorkplace wp) { String url = OpenCms.getLinkManager().substituteLink( wp.getCms(), "/system/workplace/commons/list-csv.jsp?" + CmsListCsvExportDialog.PARAM_LISTCLASS + "=" + wp.getClass().getName()); String title = "CSV - " + ((A_CmsListDialog)wp).getList().getName().key(wp.getLocale()); String opts = "toolbar=no,location=no,directories=no,status=yes,menubar=0,scrollbars=yes,resizable=yes,top=150,left=660,width=450,height=450"; StringBuffer js = new StringBuffer(512); js.append("window.open('"); js.append(url); js.append("', '"); js.append(title); js.append("', '"); js.append(opts); js.append("');"); return js.toString(); } }
/** * @see org.opencms.workplace.tools.CmsToolDialog#dialogTitle() */ @Override public String dialogTitle() { // build title StringBuffer html = new StringBuffer(512); CmsMessages message = Messages.get().getBundle(getLocale()); html.append("<div class='screenTitle'>\n"); html.append("\t<table width='100%' cellspacing='0'>\n"); html.append("\t\t<tr>\n"); html.append("\t\t\t<td>\n"); html.append(m_list.getName().key(getLocale())); html.append("\n\t\t\t</td>"); html.append("\t\t\t<td class='uplevel'>\n\t\t\t\t"); html.append(A_CmsHtmlIconButton.defaultButtonHtml( CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, "id-print", message.key(Messages.GUI_ACTION_PRINT_NAME_0), message.key(Messages.GUI_ACTION_PRINT_HELP_0), true, "list/print.png", null, "print();")); html.append("\n\t\t\t</td>\n"); html.append("\t\t</tr>\n"); html.append("\t</table>\n"); html.append("</div>\n"); return CmsToolMacroResolver.resolveMacros(html.toString(), this); }
html.append("\t\t<tr>\n"); html.append("\t\t\t<td>\n"); html.append(m_list.getName().key(getLocale())); html.append("\n\t\t\t</td>"); html.append("\t\t\t<td class='uplevel'>\n\t\t\t\t");
/** * @see org.opencms.workplace.list.A_CmsListDialog#defaultActionHtmlContent() */ @Override protected String defaultActionHtmlContent() { StringBuffer result = new StringBuffer(2048); result.append("<!-- start before list -->\n"); result.append(customHtmlBeforeList()); result.append("<!-- end before list -->\n"); result.append(dialogBlockStart(key(getList().getName().getKey()))); result.append(dialogWhiteBoxStart()); // start scrollbox // result.append("<div style=\"overflow: auto; height: 150px; \">"); getList().setWp(this); result.append(getList().listHtml()); // end scrollbox // result.append("</div>"); result.append(dialogWhiteBoxEnd()); result.append(dialogBlockEnd()); return result.toString(); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#defaultActionHtmlContent() */ @Override protected String defaultActionHtmlContent() { StringBuffer result = new StringBuffer(2048); result.append("<!-- start before list -->\n"); result.append(customHtmlBeforeList()); result.append("<!-- end before list -->\n"); result.append(dialogBlockStart(key(getList().getName().getKey()))); result.append(dialogWhiteBoxStart()); // start scrollbox // result.append("<div style=\"overflow: auto; height: 150px; \">"); getList().setWp(this); result.append(getList().listHtml()); // end scrollbox // result.append("</div>"); result.append(dialogWhiteBoxEnd()); result.append(dialogBlockEnd()); return result.toString(); }
CmsMessageContainer msg = Messages.get().container( Messages.LOG_ERR_LIST_ITEM_SKIPPED_2, getList().getName().key(getLocale()), "Name"); if (LOG.isWarnEnabled()) {
CmsMessageContainer msg = Messages.get().container( Messages.LOG_ERR_LIST_ITEM_SKIPPED_2, getList().getName().key(getLocale()), "Name"); if (LOG.isWarnEnabled()) {
/** * Calls the <code>{@link #getListItems}</code> method and catches any exception.<p> */ protected void fillList() { try { getList().setContent(getListItems()); // initialize detail columns Iterator<CmsListItemDetails> itDetails = getList().getMetadata().getItemDetailDefinitions().iterator(); while (itDetails.hasNext()) { initializeDetail(itDetails.next().getId()); } } catch (Exception e) { throw new CmsRuntimeException( Messages.get().container(Messages.ERR_LIST_FILL_1, getList().getName().key(getLocale()), null), e); } }
/** * Calls the <code>{@link #getListItems}</code> method and catches any exception.<p> */ protected void fillList() { try { getList().setContent(getListItems()); // initialize detail columns Iterator itDetails = getList().getMetadata().getItemDetailDefinitions().iterator(); while (itDetails.hasNext()) { initializeDetail(((CmsListItemDetails)itDetails.next()).getId()); } } catch (Exception e) { throw new CmsRuntimeException(Messages.get().container( Messages.ERR_LIST_FILL_1, getList().getName().key(getLocale()), null), e); } }
/** * A convenient method to throw a list unsupported * action runtime exception.<p> * * Should be triggered if your list implementation does not * support the <code>{@link #getParamListAction()}</code> * action.<p> * * @throws CmsRuntimeException always to signal that this operation is not supported */ protected void throwListUnsupportedActionException() throws CmsRuntimeException { throw new CmsRuntimeException( Messages.get().container( Messages.ERR_LIST_UNSUPPORTED_ACTION_2, getList().getName().key(getLocale()), getParamListAction())); }
/** * A convenient method to throw a list unsupported * action runtime exception.<p> * * Should be triggered if your list implementation does not * support the <code>{@link #getParamListAction()}</code> * action.<p> * * @throws CmsRuntimeException always to signal that this operation is not supported */ protected void throwListUnsupportedActionException() throws CmsRuntimeException { throw new CmsRuntimeException(Messages.get().container( Messages.ERR_LIST_UNSUPPORTED_ACTION_2, getList().getName().key(getLocale()), getParamListAction())); }