Interface MultiItemSelection.Indexes

All Superinterfaces:
Mutable<List<Integer>>, Observable<List<Integer>>, Observer<List<Integer>>
Enclosing interface:
MultiItemSelection<T>

public static interface MultiItemSelection.Indexes extends Mutable<List<Integer>>
Manages the selected indexes.
  • Method Details

    • set

      void set(Collection<Integer> indexes)
      Parameters:
      indexes - the indexes to select
    • add

      void add(int index)
      Adds the given index to the selected indexes
      Parameters:
      index - the index
    • remove

      void remove(int index)
      Removes the given index from the selection
      Parameters:
      index - the index
    • add

      void add(Collection<Integer> indexes)
      Adds these indexes to the selection
      Parameters:
      indexes - the indexes to add to the selection
    • remove

      void remove(Collection<Integer> indexes)
      Removes the given indexes from the selection
      Parameters:
      indexes - the indexes
    • contains

      boolean contains(int index)
      Parameters:
      index - the index
      Returns:
      true if the given index is selected
    • increment

      void increment()
      Increments all selected indexes by one, with wrap-around. If the selection is empty the lowest index is selected.
    • decrement

      void decrement()
      Decrements all selected indexes by one, with wrap-around. If the selection is empty the highest index is selected.