Class SortEvent<T extends com.vaadin.flow.component.Component,S extends SortOrder<?>>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<T>
com.vaadin.flow.data.event.SortEvent<T,S>
Type Parameters:
T - the event source type
S - the type of the sorting information
All Implemented Interfaces:
Serializable

public class SortEvent<T extends com.vaadin.flow.component.Component,S extends SortOrder<?>> extends com.vaadin.flow.component.ComponentEvent<T>
Event describing a change in sorting of a DataProvider. Fired by SortNotifiers.
Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    SortEvent.SortNotifier<T extends com.vaadin.flow.component.Component,S extends SortOrder<?>>
    The interface for adding and removing listeners for SortEvents.
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    SortEvent(T source, List<S> sortOrder, boolean fromClient)
    Creates a new sort order change event with a sort order list.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the sort order list.

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SortEvent

      public SortEvent(T source, List<S> sortOrder, boolean fromClient)
      Creates a new sort order change event with a sort order list.
      Parameters:
      source - the component from which the event originates
      sortOrder - the new sort order list
      fromClient - true if event is a result of user interaction, false if from API call
  • Method Details

    • getSortOrder

      public List<S> getSortOrder()
      Gets the sort order list.
      Returns:
      the sort order list