Interface SingleItemSelection<T>

Type Parameters:
T - the item type
All Known Subinterfaces:
FilterComboBoxModel.ComboBoxSelection<T>, FilterTableModel.TableSelection<R>, MultiItemSelection<T>

public interface SingleItemSelection<T>
A selection model for managing a single selected item
  • Method Details

    • empty

      StateObserver empty()
      Returns:
      a StateObserver indicating whether the selection is empty
    • changing

      Observer<?> changing()
      To prevent a selection change, add a listener throwing a CancelException.
      Returns:
      an observer notified when the selection is about to change
    • item

      Mutable<T> item()
      Returns:
      a Mutable controlling the selected item
    • clear

      void clear()
      Clears the selection