com.vaadin.event.
Class SortEvent<T extends SortOrder<?>>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.event.SortEvent<T>
-
Type Parameters:
T
- the type of the sorting informationAll Implemented Interfaces:
public class SortEvent<T extends SortOrder<?>> extends Component.Event implements HasUserOriginated
Event describing a change in sorting of a
DataProvider
. Fired bySortNotifiers
.Since:
8.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SortEvent.SortListener<T extends SortOrder<?>>
Listener for sort order change events.
static interface
SortEvent.SortNotifier<T extends SortOrder<?>>
The interface for adding and removing listeners for
SortEvents
.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Modifier and Type Method Description List<T>
getSortOrder()
Gets the sort order list.
boolean
isUserOriginated()
Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.
-
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
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 originatessortOrder
- the new sort order listuserOriginated
-true
if event is a result of user interaction,false
if from API call
-
-
Method Detail
-
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 interfaceHasUserOriginated
Returns:
true
if this event originates from the client,false
otherwise.
-
-