com.holonplatform.vaadin.flow.components

## Interface Selectable.SelectionEvent<T>

- Type Parameters:
    `T` - Selection item type
  All Superinterfaces:
    Serializable
  Enclosing interface:
    Selectable<T>

      public static interface Selectable.SelectionEvent<T>
      extends Serializable

  Selection event.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<T>` | `getAllSelectedItems()` Gets all the currently selected items.
    `Optional<T>` | `getFirstSelectedItem()` Get first selected data item, if any.
    `boolean` | `isUserOriginated()` Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.

- - ### Method Detail

    - #### getFirstSelectedItem

          Optional<T> getFirstSelectedItem()

      Get first selected data item, if any.
      Returns:
        the first selected item, empty if none

    - #### getAllSelectedItems

          Set<T> getAllSelectedItems()

      Gets all the currently selected items. For single selection it returns a set containing the only selected item.
      Returns:
        return all the selected items, if any, never `null`

    - #### isUserOriginated

          boolean isUserOriginated()

      Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.
      Returns:
        `true` if this event originates from the client, `false` otherwise.

Copyright © 2019 The Holon Platform. All rights reserved.