Class SortEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.Component>
com.vaadin.featurepack.ui.Event
com.vaadin.featurepack.event.SortEvent
All Implemented Interfaces:
Serializable

public class SortEvent extends Event
Event describing a change in sorting of a Container. Fired by SortNotifiers.
Since:
7.4
Author:
Vaadin Ltd
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Listener for sort order change events.
    static interface 
    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(com.vaadin.flow.component.Component source, List<SortOrder> sortOrder, boolean userOriginated)
    Creates a new sort order change event with a sort order list.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the sort order list.
    boolean
    Returns whether this event originated from actions done by the user.

    Methods inherited from class com.vaadin.featurepack.ui.Event

    getComponent

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

    getSource, getUI, 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(com.vaadin.flow.component.Component source, List<SortOrder> sortOrder, boolean userOriginated)
      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
      userOriginated - true if event is a result of user interaction, false if from API call
  • Method Details

    • getSortOrder

      public List<SortOrder> getSortOrder()
      Gets the sort order list.
      Returns:
      the sort order list
    • isUserOriginated

      public boolean isUserOriginated()
      Returns whether this event originated from actions done by the user.
      Returns:
      true if sort event originated from user interaction