Interface SelectionProvider.Selection

Enclosing class:
SelectionProvider

@OpenApiAll public static interface SelectionProvider.Selection
  • Method Details

    • getSize

      int getSize()
      Returns:
      number of selected elements
    • getSelected

      Collection<? extends BaseElement> getSelected()
      Returns:
      selected elements
    • getMainElement

      @CheckForNull BaseElement getMainElement()
      Returns:
      main selected element
    • getSelectedOrMainElement

      @CheckForNull default BaseElement getSelectedOrMainElement()
      Returns:
      selected element if only one element is selected or main element