public class DefaultTableRowSortingModel extends Object implements TableRowSortingModel
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,SortType> |
columnSortTypes
Map of column id and
SortType information. |
| Constructor and Description |
|---|
DefaultTableRowSortingModel() |
| Modifier and Type | Method and Description |
|---|---|
SortType |
getSortType(String tableUniqueIdentifier,
String columnUniqueIdentifier) |
void |
sortColumn(String tableUniqueIdentifier,
String columnUniqueIdentifier,
String sortBy,
SortType sortType)
Resets all sort orders to NONE and sets
SortType for corresponding column id. |
public void sortColumn(String tableUniqueIdentifier, String columnUniqueIdentifier, String sortBy, SortType sortType)
SortType for corresponding column id.sortColumn in interface TableRowSortingModelcolumnUniqueIdentifier - optional column id (generated id will be used is column id attribute is not set)sortBy - optional column component attributesortType - the SortTypetableUniqueIdentifier - table unique identifier (component client if if unique identifier is empty)public SortType getSortType(String tableUniqueIdentifier, String columnUniqueIdentifier)
getSortType in interface TableRowSortingModelCopyright © 2018. All rights reserved.