T - The row type of the grid. The row type is the POJO type from where
the data is retrieved into the column cells.public class ColumnReorderEvent<T> extends com.google.gwt.event.shared.GwtEvent<ColumnReorderHandler<T>>
| Constructor and Description |
|---|
ColumnReorderEvent(List<Grid.Column<?,T>> oldColumnOrder,
List<Grid.Column<?,T>> newColumnOrder,
boolean userOriginated)
Constructs a reorder event for grid columns.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(ColumnReorderHandler<T> handler) |
com.google.gwt.event.shared.GwtEvent.Type<ColumnReorderHandler<T>> |
getAssociatedType() |
List<Grid.Column<?,T>> |
getNewColumnOrder()
Gets the new ordering of columns.
|
List<Grid.Column<?,T>> |
getOldColumnOrder()
Gets the ordering of columns prior to this event.
|
static com.google.gwt.event.shared.GwtEvent.Type<ColumnReorderHandler<?>> |
getType()
Returns the associated handler type.
|
boolean |
isUserOriginated()
Check whether this event originated from the user reordering columns or
via API call.
|
assertLive, getSource, isLive, kill, revivepublic ColumnReorderEvent(List<Grid.Column<?,T>> oldColumnOrder, List<Grid.Column<?,T>> newColumnOrder, boolean userOriginated)
oldColumnOrder - the old ordernewColumnOrder - the new orderuserOriginated - true if the event was triggered by user interaction,
false otherwisepublic static final com.google.gwt.event.shared.GwtEvent.Type<ColumnReorderHandler<?>> getType()
public List<Grid.Column<?,T>> getOldColumnOrder()
public List<Grid.Column<?,T>> getNewColumnOrder()
public boolean isUserOriginated()
true if columns were reordered by the user, false
if notpublic com.google.gwt.event.shared.GwtEvent.Type<ColumnReorderHandler<T>> getAssociatedType()
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<ColumnReorderHandler<T>>protected void dispatch(ColumnReorderHandler<T> handler)
dispatch in class com.google.gwt.event.shared.GwtEvent<ColumnReorderHandler<T>>Copyright © 2023 Vaadin Ltd. All rights reserved.