T - the type of the sorting informationpublic class SortEvent<T extends SortOrder<?>> extends Component.Event
DataProvider. Fired by
SortNotifiers.SortEvent.SortListener,
SortOrder,
Serialized Form| Modifier and Type | Class and 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. |
source| Constructor and Description |
|---|
SortEvent(Component source,
List<T> sortOrder,
boolean userOriginated)
Creates a new sort order change event with a sort order list.
|
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getSortOrder()
Gets the sort order list.
|
boolean |
isUserOriginated()
Returns whether this event originated from actions done by the user.
|
getComponentgetConnectorgetSource, toStringpublic SortEvent(Component source, List<T> sortOrder, boolean userOriginated)
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 callCopyright © 2017 Vaadin Ltd. All rights reserved.