Interface MultiItemSelection.Items<R>

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

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

    • 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
    • contains

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