|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widget.grid.datasources.ListSorter<T>
T - Grid row data typepublic class ListSorter<T>
Provides sorting facility from Grid for the ListDataSource in-memory
data source.
| Constructor Summary | |
|---|---|
ListSorter(Grid<T> grid)
|
|
| Method Summary | ||
|---|---|---|
void |
clearComparators()
Remove all comparator mappings. |
|
|
getComparator(Grid.Column<C,T> column)
Retrieve the comparator assigned for a specific grid column. |
|
void |
removeFromGrid()
Detach this Sorter from the Grid. |
|
|
setComparator(Grid.Column<C,T> column,
java.util.Comparator<C> comparator)
Assign or remove a comparator for a column. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListSorter(Grid<T> grid)
| Method Detail |
|---|
public void removeFromGrid()
public <C> void setComparator(Grid.Column<C,T> column,
java.util.Comparator<C> comparator)
column - a grid column. May not be null.comparator - comparator method for the values returned by the grid column.
If null, any existing comparator is removed.public <C> java.util.Comparator<C> getComparator(Grid.Column<C,T> column)
column - a grid column. May not be null.
public void clearComparators()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||