T - the data type of the selection modelpublic interface SelectionEvent<T> extends HasUserOriginated
| Modifier and Type | Method and Description |
|---|---|
Set<T> |
getAllSelectedItems()
Gets all the currently selected items.
|
Optional<T> |
getFirstSelectedItem()
Get first selected data item.
|
isUserOriginatedOptional<T> getFirstSelectedItem()
This is the same as SingleSelectionEvent.getSelectedItem() in
case of single selection and the first selected item from
MultiSelectionEvent.getNewSelection() in case of multi selection.
Copyright © 2019 Vaadin Ltd. All rights reserved.