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:
- java.io.Serializable
public class SortEvent
- extends Component.Event
Event describing a change in sorting of a Container. Fired by
SortNotifiers.
- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
SortEvent.SortListener,
Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
SortEvent(Component source,
java.util.List<SortOrder> sortOrder,
boolean userOriginated)
Creates a new sort order change event with a sort order list. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SortEvent
public SortEvent(Component source,
java.util.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 - true if event is a result of user interaction,
false if from API call
getSortOrder
public java.util.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
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.