public class ColumnSortEvent extends GwtEvent<ColumnSortEvent.Handler>
| Modifier and Type | Class and Description |
|---|---|
static class |
ColumnSortEvent.AsyncHandler
A default handler used with views attached to asynchronous data providers
such as
AsyncDataProvider. |
static interface |
ColumnSortEvent.Handler
Handler for
ColumnSortEvent. |
static class |
ColumnSortEvent.ListHandler<T>
A default handler used to sort a
List backing a table. |
GwtEvent.Type<H>| Modifier | Constructor and Description |
|---|---|
protected |
ColumnSortEvent(ColumnSortList sortList)
Construct a new
ColumnSortEvent. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(ColumnSortEvent.Handler handler)
Should only be called by
HandlerManager. |
static ColumnSortEvent |
fire(HasHandlers source,
ColumnSortList sortList)
Fires a column sort event on all registered handlers in the handler
manager.
|
GwtEvent.Type<ColumnSortEvent.Handler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
Column<?,?> |
getColumn()
Get the
Column that was sorted. |
ColumnSortList |
getColumnSortList()
Get the
ColumnSortList that contains the ordered list of sorted
columns. |
static GwtEvent.Type<ColumnSortEvent.Handler> |
getType()
Gets the type associated with this event.
|
boolean |
isSortAscending()
Check if the
Column is sorted in ascending order. |
assertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringprotected ColumnSortEvent(ColumnSortList sortList)
ColumnSortEvent.sortList - the ColumnSortListpublic static ColumnSortEvent fire(HasHandlers source, ColumnSortList sortList)
source - the source of the eventsortList - the ColumnSortList of sorted columnsColumnSortEvent that was firedpublic static GwtEvent.Type<ColumnSortEvent.Handler> getType()
public GwtEvent.Type<ColumnSortEvent.Handler> getAssociatedType()
EventEvent.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class.getAssociatedType in class GwtEvent<ColumnSortEvent.Handler>public Column<?,?> getColumn()
Column that was sorted.Column, or null if not sortedpublic ColumnSortList getColumnSortList()
ColumnSortList that contains the ordered list of sorted
columns.ColumnSortListpublic boolean isSortAscending()
Column is sorted in ascending order.protected void dispatch(ColumnSortEvent.Handler handler)
GwtEventHandlerManager. In other words, do not use
or call.dispatch in class GwtEvent<ColumnSortEvent.Handler>handler - handlerEventBus.dispatchEvent(Event, Object)