/** * @see org.opencms.workplace.list.A_CmsListDialog#customHtmlStart() */ @Override protected String customHtmlStart() { StringBuffer result = new StringBuffer(256); result.append(super.customHtmlStart()); result.append("<script type='text/javascript'>\n"); result.append("function enableButton() {\n"); result.append("\tvar theButton = document.getElementById(\"nextButton\");\n"); result.append("\tif (theButton.disabled == true) {\n"); result.append("\t\ttheButton.disabled = false;\n"); result.append("\t}\n"); result.append("}\n"); result.append("function submitAdvanced() {\n"); result.append( "\tdocument.forms[\"" + getList().getId() + "-form\"].action.value = \"" + DIALOG_ADVANCED + "\";\n"); result.append("\tdocument.forms[\"" + getList().getId() + "-form\"].submit();\n"); result.append("}\n"); result.append("</script>"); return result.toString(); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#customHtmlStart() */ @Override protected String customHtmlStart() { StringBuffer result = new StringBuffer(256); result.append(super.customHtmlStart()); result.append("<script type='text/javascript'>\n"); result.append("function enableButton() {\n"); result.append("\tvar theButton = document.getElementById(\"nextButton\");\n"); result.append("\tif (theButton.disabled == true) {\n"); result.append("\t\ttheButton.disabled = false;\n"); result.append("\t}\n"); result.append("}\n"); result.append("function submitAdvanced() {\n"); result.append("\tdocument.forms[\"" + getList().getId() + "-form\"].action.value = \"" + DIALOG_ADVANCED + "\";\n"); result.append("\tdocument.forms[\"" + getList().getId() + "-form\"].submit();\n"); result.append("}\n"); result.append("</script>"); return result.toString(); }
/** * Returns the list.<p> * * @return the list */ public CmsHtmlList getList() { if ((m_list != null) && (m_list.getMetadata() == null)) { m_list.setMetadata(getMetadata(getClass().getName(), m_list.getId())); } return m_list; }
/** * Returns the list.<p> * * @return the list */ public CmsHtmlList getList() { if ((m_list != null) && (m_list.getMetadata() == null)) { m_list.setMetadata(getMetadata(getClass().getName(), m_list.getId())); } return m_list; }
/** * Recover the last list instance that is read from the request attributes.<p> * * This is required for keep the whole list in memory while you browse a page.<p> * * @param listId the id of the expected list */ protected synchronized void listRecovery(String listId) { CmsHtmlList list = getListObject(this.getClass(), getSettings()); if ((list != null) && !list.getId().equals(listId)) { list = null; } setList(list); }
/** * Recover the last list instance that is read from the request attributes.<p> * * This is required for keep the whole list in memory while you browse a page.<p> * * @param listId the id of the expected list */ protected synchronized void listRecovery(String listId) { CmsHtmlList list = getListObject(this.getClass(), getSettings()); if ((list != null) && !list.getId().equals(listId)) { list = null; } setList(list); }
html.append("\t<th width='0' class='select'>\n"); html.append("\t\t<input type='checkbox' class='checkbox' name='listSelectAll' value='true' onClick=\"listSelect('"); html.append(list.getId()); html.append("')\">\n"); html.append("\t</th>\n");
html.append( "\t\t<input type='checkbox' class='checkbox' name='listSelectAll' value='true' onClick=\"listSelect('"); html.append(list.getId()); html.append("')\">\n"); html.append("\t</th>\n");
result.append(getList().getId()); result.append("-form' action='"); result.append(getDialogRealUri()); if (getList().getMetadata().isSearchable()) { result.append(" onsubmit=\"listSearchAction('"); result.append(getList().getId()); result.append("', '"); result.append(getList().getMetadata().getSearchAction().getId());
result.append(getList().getId()); result.append("-form' action='"); result.append(getDialogRealUri()); if (getList().getMetadata().isSearchable()) { result.append(" onsubmit=\"listSearchAction('"); result.append(getList().getId()); result.append("', '"); result.append(getList().getMetadata().getSearchAction().getId());
/** * Returns the html code for the default action content.<p> * * @return html code */ protected String defaultActionHtmlContent() { StringBuffer result = new StringBuffer(2048); result.append("<form name='"); result.append(getList().getId()); result.append("-form' action='"); result.append(getDialogRealUri()); result.append("' method='post' class='nomargin'"); if (getList().getMetadata().isSearchable()) { result.append(" onsubmit=\"listSearchAction('"); result.append(getList().getId()); result.append("', '"); result.append(getList().getMetadata().getSearchAction().getId()); result.append("', '"); result.append(getList().getMetadata().getSearchAction().getConfirmationMessage().key(getLocale())); result.append("');\""); } result.append(">\n"); result.append(allParamsAsHidden()); result.append("\n"); getList().setWp(this); result.append(getList().listHtml()); result.append("\n</form>\n"); return result.toString(); }
/** * Returns the html code for the default action content.<p> * * @return html code */ protected String defaultActionHtmlContent() { StringBuffer result = new StringBuffer(2048); result.append("<form name='"); result.append(getList().getId()); result.append("-form' action='"); result.append(getDialogRealUri()); result.append("' method='post' class='nomargin'"); if (getList().getMetadata().isSearchable()) { result.append(" onsubmit=\"listSearchAction('"); result.append(getList().getId()); result.append("', '"); result.append(getList().getMetadata().getSearchAction().getId()); result.append("', '"); result.append(getList().getMetadata().getSearchAction().getConfirmationMessage().key(getLocale())); result.append("');\""); } result.append(">\n"); result.append(allParamsAsHidden()); result.append("\n"); getList().setWp(this); result.append(getList().listHtml()); result.append("\n</form>\n"); return result.toString(); }
helpText = messages.key(Messages.GUI_LIST_PAGING_PREVIOUS_HELPDIS_0); String onClic = "listSetPage('" + getId() + "', " + (getCurrentPage() - 1) + ")"; html.append(A_CmsHtmlIconButton.defaultButtonHtml( CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, helpText = messages.key(Messages.GUI_LIST_PAGING_NEXT_HELPDIS_0); onClic = "listSetPage('" + getId() + "', " + (getCurrentPage() + 1) + ")"; html.append(A_CmsHtmlIconButton.defaultButtonHtml( CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, html.append(getId()); html.append("', this.value);\" style='vertical-align: bottom;'>\n"); html.append(
helpText = messages.key(Messages.GUI_LIST_PAGING_PREVIOUS_HELPDIS_0); String onClic = "listSetPage('" + getId() + "', " + (getCurrentPage() - 1) + ")"; html.append(A_CmsHtmlIconButton.defaultButtonHtml( CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, helpText = messages.key(Messages.GUI_LIST_PAGING_NEXT_HELPDIS_0); onClic = "listSetPage('" + getId() + "', " + (getCurrentPage() + 1) + ")"; html.append(A_CmsHtmlIconButton.defaultButtonHtml( CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, html.append(getId()); html.append("', this.value);\" style='vertical-align: bottom;'>\n"); html.append(htmlPageSelector(
String listId = list.getId(); String sortedCol = list.getSortedColumn(); CmsListOrderEnum order = list.getCurrentSortOrder();
String listId = list.getId(); String sortedCol = list.getSortedColumn(); CmsListOrderEnum order = list.getCurrentSortOrder();