public abstract class AbstractSortableSelectDataModel extends SelectDataModelImpl implements SortableDataModel
Modifier and Type | Field and Description |
---|---|
static int |
SORT_ASCENDING |
static int |
SORT_DESCENDING |
Modifier and Type | Method and Description |
---|---|
String |
getSort() |
boolean |
isAscending() |
abstract 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) |
abstract void |
sort(String column,
boolean ascending)
Sorts the list.
|
addSelectModelListener, getName, getRowCount, getRowData, getRowIndex, getRows, getSelectModelListeners, getWrappedData, isRowAvailable, removeSelectModelListener, setRowIndex, setRows, setWrappedData
addDataModelListener, getDataModelListeners, removeDataModelListener
public static final int SORT_ASCENDING
public static final int SORT_DESCENDING
public abstract void sort(String column, boolean ascending)
sort
in interface SortableDataModel
public abstract boolean isDefaultAscending(String sortColumn)
isDefaultAscending
in interface SortableDataModel
public void sort(String sortColumn)
sort
in interface SortableDataModel
public String getSort()
getSort
in interface SortableDataModel
public void setSort(String sort)
setSort
in interface SortableDataModel
public boolean isAscending()
isAscending
in interface SortableDataModel
public void setAscending(boolean ascending)
setAscending
in interface SortableDataModel
Copyright © 2013 Nuxeo SA. All Rights Reserved.