We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.data.event.
- 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 informationAll Implemented Interfaces:
public class SortEvent<T extends Component,S extends SortOrder<?>> extends ComponentEvent<T>
Event describing a change in sorting of a
DataProvider
. Fired bySortNotifiers
.Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interface
SortEvent.SortNotifier<T extends 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 and Description SortEvent(T source, List<S> sortOrder, boolean fromClient)
Creates a new sort order change event with a sort order list.
-
Method Summary
All Methods Modifier and Type Method and 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
-true
if event is a result of user interaction,false
if from API call
-
-