org.nuxeo.ecm.platform.ui.web.model.impl
Class SortableSelectDocumentDataModelImpl
java.lang.Object
javax.faces.model.DataModel
org.nuxeo.ecm.platform.ui.web.model.impl.SelectDataModelImpl
org.nuxeo.ecm.platform.ui.web.model.impl.AbstractSortableSelectDataModel
org.nuxeo.ecm.platform.ui.web.model.impl.SortableSelectDocumentDataModelImpl
- All Implemented Interfaces:
- Serializable, SelectDataModel, SortableDataModel
public class SortableSelectDocumentDataModelImpl
- extends AbstractSortableSelectDataModel
Sortable select document data model that performs sorts assuming rows are
SelectModelRow containment DocumentModel data.
The column sort criterion should be the string 'schemaName:fieldName' like
for instance 'dublincore:title'.
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
Methods inherited from class org.nuxeo.ecm.platform.ui.web.model.impl.SelectDataModelImpl |
addSelectModelListener, getName, getRowCount, getRowData, getRowIndex, getSelectModelListeners, getWrappedData, isRowAvailable, removeSelectModelListener, setRowIndex, setRows, setWrappedData |
SortableSelectDocumentDataModelImpl
public SortableSelectDocumentDataModelImpl(String name,
List data,
List selectedData,
String defaultSortColumn)
getRows
public List<SelectDataModelRow> getRows()
- Specified by:
getRows
in interface SelectDataModel
- Overrides:
getRows
in class SelectDataModelImpl
isDefaultAscending
public boolean isDefaultAscending(String sortColumn)
- Description copied from class:
AbstractSortableSelectDataModel
- Is the default sort direction for the given column "ascending"?
- Specified by:
isDefaultAscending
in interface SortableDataModel
- Specified by:
isDefaultAscending
in class AbstractSortableSelectDataModel
sort
public void sort(String column,
boolean ascending)
- Description copied from class:
AbstractSortableSelectDataModel
- Sorts the list. Should be implemented by the children to customize the
sort (what comparators should be used, what other condition must be met).
- Specified by:
sort
in interface SortableDataModel
- Specified by:
sort
in class AbstractSortableSelectDataModel
Copyright © 2011 Nuxeo SAS. All Rights Reserved.