public class SortableSelectDocumentDataModelImpl extends AbstractSortableSelectDataModel
The column sort criterion should be the string 'schemaName:fieldName' like for instance 'dublincore:title'.
SORT_ASCENDING, SORT_DESCENDING| Constructor and Description |
|---|
SortableSelectDocumentDataModelImpl(String name,
List data,
List selectedData,
String defaultSortColumn) |
| Modifier and Type | Method and Description |
|---|---|
List<SelectDataModelRow> |
getRows() |
boolean |
isDefaultAscending(String sortColumn)
Is the default sort direction for the given column "ascending"?
|
void |
sort(String column,
boolean ascending)
Sorts the list.
|
getSort, isAscending, setAscending, setSort, sortaddSelectModelListener, getName, getRowCount, getRowData, getRowIndex, getSelectModelListeners, getWrappedData, isRowAvailable, removeSelectModelListener, setRowIndex, setRows, setWrappedDataaddDataModelListener, getDataModelListeners, removeDataModelListenerpublic List<SelectDataModelRow> getRows()
getRows in interface SelectDataModelgetRows in class SelectDataModelImplpublic boolean isDefaultAscending(String sortColumn)
AbstractSortableSelectDataModelisDefaultAscending in interface SortableDataModelisDefaultAscending in class AbstractSortableSelectDataModelpublic void sort(String column, boolean ascending)
AbstractSortableSelectDataModelsort in interface SortableDataModelsort in class AbstractSortableSelectDataModelCopyright © 2011 Nuxeo SA. All Rights Reserved.