You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.grid.

Class ColumnReorderEvent<T>

    • Constructor Detail

      • 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 event

        fromClient - true if the event was originally fired on the client, false if the event originates from server-side logic

        columnIDs - the internal column IDs; automatically translated to proper Grid Column instances.

      • ColumnReorderEvent

        public ColumnReorderEvent​(Grid<T> source,
                                  boolean fromClient,
                                  List<Grid.Column<T>> columns)

        Creates a new column reorder event.

        Parameters:

        source - the component that fired the event

        fromClient - true if the event was originally fired on the client, false if the event originates from server-side logic

        columns - the newly ordered Grid columns. Not null, may be empty.

    • Method Detail

      • getColumns

        public List<Grid.Column<T>> getColumns()

        Gets the new order of the columns.

        Returns:

        the list of columns, not null, unmodifiable.