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:
- java.io.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
Method Summary |
java.util.List<SelectDataModelRow> |
getRows()
|
boolean |
isDefaultAscending(java.lang.String sortColumn)
Is the default sort direction for the given column "ascending"? |
void |
sort(java.lang.String column,
boolean ascending)
Sorts the list. |
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 |
Methods inherited from class javax.faces.model.DataModel |
addDataModelListener, getDataModelListeners, removeDataModelListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortableSelectDocumentDataModelImpl
public SortableSelectDocumentDataModelImpl(java.lang.String name,
java.util.List data,
java.util.List selectedData,
java.lang.String defaultSortColumn)
getRows
public java.util.List<SelectDataModelRow> getRows()
- Specified by:
getRows
in interface SelectDataModel
- Overrides:
getRows
in class SelectDataModelImpl
isDefaultAscending
public boolean isDefaultAscending(java.lang.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(java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.