Module MaterialFX

Interface ISingleSelectionModel<T>

All Known Implementing Classes:
AbstractSingleSelectionModel, ComboBoxSelectionModel, SingleSelectionModel

public interface ISingleSelectionModel<T>
Public API that every SingleSelectionModel must implement.
  • Property Details

    • selectedIndex

      ReadOnlyIntegerProperty selectedIndexProperty
      The selected index property as a read-only property. Selection should always be updated with the dedicated methods.
      See Also:
    • selectedItem

      ReadOnlyObjectProperty<T> selectedItemProperty
      The selected item property as a read-only property. Selection should always be updated with the dedicated methods.
      See Also:
  • Method Details

    • clearSelection

      void clearSelection()
      Clears the selection.
    • selectIndex

      void selectIndex(int index)
      Selects the given index.
    • selectItem

      void selectItem(T item)
      Selects the given item.
    • getSelectedIndex

      int getSelectedIndex()
      Returns:
      the current selected index
    • selectedIndexProperty

      ReadOnlyIntegerProperty selectedIndexProperty()
      The selected index property as a read-only property. Selection should always be updated with the dedicated methods.
      See Also:
    • getSelectedItem

      T getSelectedItem()
      Returns:
      the current selected item
    • selectedItemProperty

      ReadOnlyObjectProperty<T> selectedItemProperty()
      The selected item property as a read-only property. Selection should always be updated with the dedicated methods.
      See Also: