/** * Sort the list, given the action is set to <code>LIST_SORT</code> and * the sort column is set in the <code>PARAM_SORT_COL</code> parameter.<p> */ protected void executeSort() { getList().setSortedColumn(getParamSortCol()); }
/** * Sort the list, given the action is set to <code>LIST_SORT</code> and * the sort column is set in the <code>PARAM_SORT_COL</code> parameter.<p> */ protected void executeSort() { getList().setSortedColumn(getParamSortCol()); }
/** * Public constructor.<p> * * @param jsp an initialized JSP action element */ public CmsUserDataImportList(CmsJspActionElement jsp) { super(jsp, LIST_ID, Messages.get().container(Messages.GUI_IMPORTLISTCSV_LIST_NAME_0), false); getList().setSortedColumn(LIST_COLUMN_VALIDATION_HIDDEN); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#actionDialog() */ @Override public void actionDialog() throws JspException, ServletException, IOException { super.actionDialog(); // ensure the list is correcly sorted if (CmsStringUtil.isEmptyOrWhitespaceOnly(getList().getSortedColumn())) { getList().setSortedColumn(LIST_COLUMN_VERSION); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#actionDialog() */ @Override public void actionDialog() throws JspException, ServletException, IOException { super.actionDialog(); // ensure the list is correcly sorted if (CmsStringUtil.isEmptyOrWhitespaceOnly(getList().getSortedColumn())) { getList().setSortedColumn(LIST_COLUMN_VERSION); } }
/** * Sets the list state.<p> * * This may involve sorting, filtering and paging.<p> * * @param listState the state to be set */ public void setState(CmsListState listState) { if (!m_metadata.isSelfManaged()) { m_filteredItems = null; } synchronized (this) { if (m_visibleItems != null) { m_visibleItems.clear(); } } setSearchFilter(listState.getFilter()); setSortedColumn(listState.getColumn()); if (listState.getOrder() == CmsListOrderEnum.ORDER_DESCENDING) { setSortedColumn(listState.getColumn()); } if (listState.getPage() > 0) { if (listState.getPage() <= getNumberOfPages()) { setCurrentPage(listState.getPage()); } else { setCurrentPage(1); } } }
/** * Sets the list state.<p> * * This may involve sorting, filtering and paging.<p> * * @param listState the state to be set */ public void setState(CmsListState listState) { if (!m_metadata.isSelfManaged()) { m_filteredItems = null; } synchronized (this) { if (m_visibleItems != null) { m_visibleItems.clear(); } } setSearchFilter(listState.getFilter()); setSortedColumn(listState.getColumn()); if (listState.getOrder() == CmsListOrderEnum.ORDER_DESCENDING) { setSortedColumn(listState.getColumn()); } if (listState.getPage() > 0) { if (listState.getPage() <= getNumberOfPages()) { setCurrentPage(listState.getPage()); } else { setCurrentPage(1); } } }
getList().setSortedColumn(sortedColId); if ((sortOrder != null) && (sortOrder == CmsListOrderEnum.ORDER_DESCENDING)) { getList().setSortedColumn(sortedColId);
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(sCol)) { CmsListOrderEnum order = getCurrentSortOrder(); setSortedColumn(sCol); if (order == CmsListOrderEnum.ORDER_DESCENDING) { setSortedColumn(sCol);
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(sCol)) { CmsListOrderEnum order = getCurrentSortOrder(); setSortedColumn(sCol); if (order == CmsListOrderEnum.ORDER_DESCENDING) { setSortedColumn(sCol);
getList().setSortedColumn(sortedColId); if ((sortOrder != null) && (sortOrder == CmsListOrderEnum.ORDER_DESCENDING)) { getList().setSortedColumn(sortedColId);