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, revive
protected ColumnSortEvent(ColumnSortList sortList)
ColumnSortEvent
.sortList
- the ColumnSortList
public 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()
com.google.web.bindery.event.shared.Event
Event.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.ColumnSortList
public boolean isSortAscending()
Column
is sorted in ascending order.protected void dispatch(ColumnSortEvent.Handler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<ColumnSortEvent.Handler>
handler
- handlerEventBus.dispatchEvent(Event, Object)
Copyright © 2018. All rights reserved.