Package com.vaadin.featurepack.event
Class SortEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.Component>
com.vaadin.featurepack.ui.Event
com.vaadin.featurepack.event.SortEvent
- All Implemented Interfaces:
Serializable
Event describing a change in sorting of a
Container. Fired by
SortNotifiers.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceListener for sort order change events.static interfaceThe interface for adding and removing listeners forSortEvents. -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the sort order list.booleanReturns whether this event originated from actions done by the user.Methods inherited from class com.vaadin.featurepack.ui.Event
getComponentMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SortEvent
public SortEvent(com.vaadin.flow.component.Component source, List<SortOrder> 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 Details
-
getSortOrder
Gets the sort order list.- Returns:
- the sort order list
-
isUserOriginated
public boolean isUserOriginated()Returns whether this event originated from actions done by the user.- Returns:
- true if sort event originated from user interaction
-