public static class

ColumnSortEvent.ListHandler

extends Object
implements ColumnSortEvent.Handler
java.lang.Object
   ↳ com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler<T>

Class Overview

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.

Summary

Public Constructors
ColumnSortEvent.ListHandler(List<T> list)
Public Methods
List<T> getList()
void onColumnSort(ColumnSortEvent event)
Called when ColumnSortEvent is fired.
void setComparator(Column<T, ?> column, Comparator<T> comparator)
Set the comparator used to sort the specified column in ascending order.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.user.cellview.client.ColumnSortEvent.Handler

Public Constructors

public ColumnSortEvent.ListHandler (List<T> list)

Public Methods

public List<T> getList ()

public void onColumnSort (ColumnSortEvent event)

Called when ColumnSortEvent is fired.

Parameters
event the ColumnSortEvent that was fired

public void setComparator (Column<T, ?> column, Comparator<T> comparator)

Set the comparator used to sort the specified column in ascending order.

Parameters
column the Column
comparator the Comparator to use for the Column