|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler<T>
T
- the data type of the listpublic static class ColumnSortEvent.ListHandler<T>
A default handler used to sort a List
backing a table. If the
sorted column has an associated Comparator
, the list is sorted
using the comparator.
This can be used in conjunction with
ListDataProvider
.
Constructor Summary | |
---|---|
ColumnSortEvent.ListHandler(java.util.List<T> list)
|
Method Summary | |
---|---|
java.util.Comparator<T> |
getComparator(Column<T,?> column)
Returns the comparator that has been set for the specified column, or null if no comparator has been set. |
java.util.List<T> |
getList()
|
void |
onColumnSort(ColumnSortEvent event)
Called when ColumnSortEvent is fired. |
void |
setComparator(Column<T,?> column,
java.util.Comparator<T> comparator)
Set the comparator used to sort the specified column in ascending order. |
void |
setList(java.util.List<T> list)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnSortEvent.ListHandler(java.util.List<T> list)
Method Detail |
---|
public java.util.Comparator<T> getComparator(Column<T,?> column)
column
- the Column
public java.util.List<T> getList()
public void onColumnSort(ColumnSortEvent event)
ColumnSortEvent.Handler
ColumnSortEvent
is fired.
onColumnSort
in interface ColumnSortEvent.Handler
event
- the ColumnSortEvent
that was firedpublic void setComparator(Column<T,?> column, java.util.Comparator<T> comparator)
column
- the Column
comparator
- the Comparator
to use for the Column
public void setList(java.util.List<T> list)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |