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, sort
addSelectModelListener, getName, getRowCount, getRowData, getRowIndex, getSelectModelListeners, getWrappedData, isRowAvailable, removeSelectModelListener, setRowIndex, setRows, setWrappedData
addDataModelListener, getDataModelListeners, removeDataModelListener
public List<SelectDataModelRow> getRows()
getRows
in interface SelectDataModel
getRows
in class SelectDataModelImpl
public boolean isDefaultAscending(String sortColumn)
AbstractSortableSelectDataModel
isDefaultAscending
in interface SortableDataModel
isDefaultAscending
in class AbstractSortableSelectDataModel
public void sort(String column, boolean ascending)
AbstractSortableSelectDataModel
sort
in interface SortableDataModel
sort
in class AbstractSortableSelectDataModel
Copyright © 2013 Nuxeo SA. All Rights Reserved.