T - the data type of the selection modelC - the component typepublic interface SelectionEvent<C extends Component,T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Set<T> |
getAllSelectedItems()
Gets all the currently selected items.
|
Optional<T> |
getFirstSelectedItem()
Get first selected data item.
|
C |
getSource()
The component on which the Event initially occurred.
|
boolean |
isFromClient()
Checks if this event originated from the client side.
|
Optional<T> getFirstSelectedItem()
This is the same as SingleSelectionEvent.getSelectedItem() in
case of single selection.
Set<T> getAllSelectedItems()
This method applies more to multiselection - for single select it returns either an empty set or a set containing the only selected item.
nullC getSource()
boolean isFromClient()
true if the event originated from the client side,
false otherwiseCopyright © 2025. All rights reserved.