Interface MultiSelection<T>

Type Parameters:
T - the type of items
All Superinterfaces:
SingleSelection<T>
All Known Subinterfaces:
FilterListSelection<T>

public interface MultiSelection<T> extends SingleSelection<T>
A selection model managing multiple selected items.
  • Method Details

    • multiple

      ObservableState multiple()
      Returns:
      an ObservableState indicating whether multiple items are selected
    • single

      ObservableState single()
      Returns:
      an ObservableState indicating whether a single item is selected
    • singleSelection

      State singleSelection()
      Returns:
      the State controlling whether single selection mode is enabled
    • index

      Value<Integer> index()
      Returns:
      the Value controlling the selected index, -1 if selection is empty
    • indexes

      Returns:
      the MultiSelection.Indexes controlling the selected indexes
    • items

      Returns:
      the MultiSelection.Items controlling the selected items
    • selectAll

      void selectAll()
      Selects all items
      See Also:
    • count

      int count()
      Returns:
      the number of selected items.
    • adjusting

      void adjusting(boolean adjusting)
      Indicates whether the subsequent selection events should be grouped and not triggered individually
      Parameters:
      adjusting - true if subsequent selection events should be grouped