Interface SingleSelection<T>

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

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

    • empty

      Returns:
      an ObservableState 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

      Returns:
      the selected item
    • clear

      void clear()
      Clears the selection