/** * @see org.opencms.workplace.list.I_CmsListAction#setWp(org.opencms.workplace.list.A_CmsListDialog) */ @Override public void setWp(A_CmsListDialog wp) { super.setWp(wp); if (getShowAllAction() != null) { getShowAllAction().setWp(wp); } } }
/** * @see org.opencms.workplace.list.I_CmsListAction#setWp(org.opencms.workplace.list.A_CmsListDialog) */ @Override public void setWp(A_CmsListDialog wp) { super.setWp(wp); if (getShowAllAction() != null) { getShowAllAction().setWp(wp); } } }
/** * Generates the html code for the search bar.<p> * * @return html code */ public String htmlSearchBar() { if (!isSearchable()) { return ""; } StringBuffer html = new StringBuffer(1024); html.append("<td class='main'>\n"); html.append("\t<div>\n"); html.append( "\t\t<input type='text' name='listSearchFilter' id='" + SEARCH_BAR_INPUT_ID + "' value='' size='20' maxlength='245' style='vertical-align: bottom;'>\n"); html.append(m_searchAction.buttonHtml()); I_CmsListAction showAllAction = m_searchAction.getShowAllAction(); if (showAllAction != null) { html.append(" "); html.append(showAllAction.buttonHtml()); } html.append("\t</div>\n"); html.append("</td>\n"); return html.toString(); }
/** * Returns the html code for the search bar.<p> * * @param wp the workplace context * * @return html code */ public String barHtml(CmsWorkplace wp) { if (wp == null) { wp = getWp(); } StringBuffer html = new StringBuffer(1024); html.append("\t\t<input type='text' name='"); html.append(SEARCH_BAR_INPUT_ID); html.append("' id='"); html.append(SEARCH_BAR_INPUT_ID); html.append("' value='"); if (wp instanceof A_CmsListDialog) { // http://www.securityfocus.com/archive/1/490498: searchfilter cross site scripting vulnerability: html.append(CmsStringUtil.escapeJavaScript(CmsEncoder.escapeXml(((A_CmsListDialog)wp).getList().getSearchFilter()))); } html.append("' size='20' maxlength='245' style='vertical-align: bottom;' >\n"); html.append(buttonHtml(wp)); if (getShowAllAction() != null) { html.append(" "); html.append(getShowAllAction().buttonHtml()); } return html.toString(); }
if (getShowAllAction() != null) { html.append(" "); html.append(getShowAllAction().buttonHtml());
getMetadata().getSearchAction().getShowAllAction().setVisible(showAll); if (!m_metadata.isSelfManaged()) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(searchFilter)) {
getMetadata().getSearchAction().getShowAllAction().setVisible(showAll); if (!m_metadata.isSelfManaged()) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(searchFilter)) {