Package com.vaadin.flow.component.grid
Class ColumnReorderEvent<T>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Grid<T>>
com.vaadin.flow.component.grid.ColumnReorderEvent<T>
- Type Parameters:
T
- the grid bean type
- All Implemented Interfaces:
Serializable
@DomEvent("column-reorder-all-columns")
public class ColumnReorderEvent<T>
extends ComponentEvent<Grid<T>>
Event fired when the columns in the Grid are reordered.
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionColumnReorderEvent
(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, unregisterListener
Methods 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
-true
if the event was originally fired on the client,false
if 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
-true
if the event was originally fired on the client,false
if 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.
-