com.vaadin.event.

Class SortEvent<T extends SortOrder<?>>

    • Constructor Detail

      • SortEvent

        public SortEvent​(Component source,
                         List<T> 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 Detail

      • getSortOrder

        public List<T> getSortOrder()

        Gets the sort order list.

        Returns:

        the sort order list

      • isUserOriginated

        public boolean isUserOriginated()

        Description copied from interface: HasUserOriginated

        Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.

        Specified by:

        isUserOriginated in interface HasUserOriginated

        Returns:

        true if this event originates from the client, false otherwise.