Class ColumnSortEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<ColumnSortEvent.Handler>
com.google.gwt.event.shared.GwtEvent<ColumnSortEvent.Handler>
com.google.gwt.user.cellview.client.ColumnSortEvent
Represents a column sort event.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A default handler used with views attached to asynchronous data providers such asAsyncDataProvider
.static interface
Handler forColumnSortEvent
.static class
A default handler used to sort aList
backing a table.Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
ColumnSortEvent
(ColumnSortList sortList) Construct a newColumnSortEvent
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(ColumnSortEvent.Handler handler) Should only be called byHandlerManager
.static ColumnSortEvent
fire
(HasHandlers source, ColumnSortList sortList) Fires a column sort event on all registered handlers in the handler manager.Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.Column
<?, ?> Get theColumn
that was sorted.Get theColumnSortList
that contains the ordered list of sorted columns.static GwtEvent.Type
<ColumnSortEvent.Handler> getType()
Gets the type associated with this event.boolean
Check if theColumn
is sorted in ascending order.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
ColumnSortEvent
Construct a newColumnSortEvent
.- Parameters:
sortList
- theColumnSortList
-
-
Method Details
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
Description copied from class:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in classGwtEvent<ColumnSortEvent.Handler>
- Returns:
- the type
-
getColumn
Get theColumn
that was sorted.- Returns:
- the sorted
Column
, or null if not sorted
-
getColumnSortList
Get theColumnSortList
that contains the ordered list of sorted columns.- Returns:
- the
ColumnSortList
-
isSortAscending
public boolean isSortAscending()Check if theColumn
is sorted in ascending order.- Returns:
- true if ascending, false if descending or not sorted
-
dispatch
Description copied from class:GwtEvent
Should only be called byHandlerManager
. In other words, do not use or call.- Specified by:
dispatch
in classGwtEvent<ColumnSortEvent.Handler>
- Parameters:
handler
- handler- See Also: