Interface MultiSelection.Items<R>

Type Parameters:
R - the item type
All Superinterfaces:
Observable<List<R>>, Observer<List<R>>
Enclosing interface:
MultiSelection<T>

public static interface MultiSelection.Items<R> extends Observable<List<R>>
Manages the the selected items.
  • Method Details

    • get

      List<R> get()
      Specified by:
      get in interface Observable<R>
      Returns:
      the selected items or an empty list if the selection is empty
    • set

      void set(List<R> items)
      Parameters:
      items - the items to select
    • set

      void set(Collection<R> items)
      Parameters:
      items - the items to select
    • set

      void set(Predicate<R> predicate)
      Sets the items passing the predicate test as the selection
      Parameters:
      predicate - the predicate
    • add

      void add(Predicate<R> predicate)
      Adds the items passing the predicate test to the selection
      Parameters:
      predicate - the predicate
    • add

      void add(R item)
      Adds the given item to the selection
      Parameters:
      item - the item to add to the selection
    • add

      void add(Collection<R> items)
      Adds the given items to the selection
      Parameters:
      items - the items to add to the selection
    • remove

      void remove(R item)
      Remove the given item from the selection
      Parameters:
      item - the item to remove from the selection
    • remove

      void remove(Collection<R> items)
      Remove the given items from the selection
      Parameters:
      items - the items to remove from the selection
    • clear

      void clear()
      Clears the selection
    • contains

      boolean contains(R item)
      Parameters:
      item - the item
      Returns:
      true if the given item is selected