Package com.vaadin.event
Class SortEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.event.SortEvent
-
- All Implemented Interfaces:
Serializable
public class SortEvent extends Component.Event
Event describing a change in sorting of aContainer. Fired bySortNotifiers.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
SortEvent.SortListener, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSortEvent.SortListenerListener for sort order change events.static interfaceSortEvent.SortNotifierThe 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<SortOrder>getSortOrder()Gets the sort order list.booleanisUserOriginated()Returns whether this event originated from actions done by the user.-
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<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 Detail
-
getSortOrder
public List<SortOrder> 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
-
-