Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.model
Interface SortableDataModel

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractSortableSelectDataModel, SortableSelectDocumentDataModelImpl

public interface SortableDataModel
extends Serializable

Provides support for sorting table models. Inspired from Tomahawk examples. Abstract method design pattern.

Author:
Razvan Caraghin

Method Summary
 String getSort()
           
 boolean isAscending()
           
 boolean isDefaultAscending(String sortColumn)
          Is the default sort direction for the given column "ascending" ?
 void setAscending(boolean ascending)
           
 void setSort(String sort)
           
 void sort(String sortColumn)
           
 void sort(String column, boolean ascending)
          Sort the list.
 

Method Detail

sort

void sort(String column,
          boolean ascending)
Sort the list. Should be implemented by the children to customize the sort (what comparators should be used, what other condition must be met).


isDefaultAscending

boolean isDefaultAscending(String sortColumn)
Is the default sort direction for the given column "ascending" ?


sort

void sort(String sortColumn)

getSort

String getSort()

setSort

void setSort(String sort)

isAscending

boolean isAscending()

setAscending

void setAscending(boolean ascending)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.