Package com.vaadin.flow.data.event
Class SortEvent<T extends 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 typeS- the type of the sorting information
- All Implemented Interfaces:
Serializable
public class SortEvent<T extends Component,S extends SortOrder<?>> extends ComponentEvent<T>
Event describing a change in sorting of aDataProvider. Fired bySortNotifiers.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
SortOrder, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSortEvent.SortNotifier<T extends Component,S extends SortOrder<?>>The interface for adding and removing listeners forSortEvents.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<S>getSortOrder()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
-
-
-
-
Constructor Detail
-
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 originatessortOrder- the new sort order listfromClient-trueif event is a result of user interaction,falseif from API call
-
-