Class ColumnReorderEvent<T>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Grid<T>>
io.jmix.groupgridflowui.kit.vaadin.grid.ColumnReorderEvent<T>
- Type Parameters:
T- the grid bean type
- All Implemented Interfaces:
Serializable
@DomEvent("column-reorder-all-columns")
public class ColumnReorderEvent<T>
extends com.vaadin.flow.component.ComponentEvent<Grid<T>>
Event fired when the columns in the Grid are reordered.
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionColumnReorderEvent(Grid<T> source, boolean fromClient, elemental.json.JsonArray columnIDs) Creates a new column reorder event.ColumnReorderEvent(Grid<T> source, boolean fromClient, List<Grid.Column<T>> columns) Creates a new column reorder event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ColumnReorderEvent
public ColumnReorderEvent(Grid<T> source, boolean fromClient, @EventData("event.detail.columns") elemental.json.JsonArray columnIDs) Creates a new column reorder event.- Parameters:
source- the component that fired the eventfromClient-trueif the event was originally fired on the client,falseif the event originates from server-side logiccolumnIDs- the internal column IDs; automatically translated to proper Grid Column instances.
-
ColumnReorderEvent
Creates a new column reorder event.- Parameters:
source- the component that fired the eventfromClient-trueif the event was originally fired on the client,falseif the event originates from server-side logiccolumns- the newly ordered Grid columns. Not null, may be empty.
-
-
Method Details
-
getColumns
Gets the new order of the columns.- Returns:
- the list of columns, not null, unmodifiable.
-