Package 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 information
- All Implemented Interfaces:
HasUserOriginated,Serializable
public class SortEvent<T extends SortOrder<?>> extends Component.Event implements HasUserOriginated
Event describing a change in sorting of aDataProvider. Fired bySortNotifiers.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
SortEvent.SortListener,SortOrder, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSortEvent.SortListener<T extends SortOrder<?>>Listener for sort order change events.static interfaceSortEvent.SortNotifier<T 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<T>getSortOrder()Gets the sort order list.booleanisUserOriginated()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-trueif event is a result of user interaction,falseif from API call
-
-
Method Detail
-
isUserOriginated
public boolean isUserOriginated()
Description copied from interface:HasUserOriginatedReturns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.- Specified by:
isUserOriginatedin interfaceHasUserOriginated- Returns:
trueif this event originates from the client,falseotherwise.
-
-