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
Nested ClassesModifier and TypeClassDescriptionstatic classA default handler used with views attached to asynchronous data providers such asAsyncDataProvider.static interfaceHandler forColumnSortEvent.static classA default handler used to sort aListbacking a table.Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedColumnSortEvent(ColumnSortList sortList) Construct a newColumnSortEvent. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(ColumnSortEvent.Handler handler) Should only be called byHandlerManager.static ColumnSortEventfire(HasHandlers source, ColumnSortList sortList) Fires a column sort event on all registered handlers in the handler manager.Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.Column<?, ?> Get theColumnthat was sorted.Get theColumnSortListthat contains the ordered list of sorted columns.static GwtEvent.Type<ColumnSortEvent.Handler> getType()Gets the type associated with this event.booleanCheck if theColumnis sorted in ascending order.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, reviveMethods 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:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
getAssociatedTypein classGwtEvent<ColumnSortEvent.Handler>- Returns:
- the type
-
getColumn
Get theColumnthat was sorted.- Returns:
- the sorted
Column, or null if not sorted
-
getColumnSortList
Get theColumnSortListthat contains the ordered list of sorted columns.- Returns:
- the
ColumnSortList
-
isSortAscending
public boolean isSortAscending()Check if theColumnis sorted in ascending order.- Returns:
- true if ascending, false if descending or not sorted
-
dispatch
Description copied from class:GwtEventShould only be called byHandlerManager. In other words, do not use or call.- Specified by:
dispatchin classGwtEvent<ColumnSortEvent.Handler>- Parameters:
handler- handler- See Also: