Interface CheckModel<T>

All Known Subinterfaces:
IndexedCheckModel<T>

public interface CheckModel<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    check(T item)
    Checks the given item in the control.
    void
    Checks all items in the control
    void
    clearCheck(T item)
    Unchecks the given item in the control
    void
    Unchecks all items in the control
    javafx.collections.ObservableList<T>
    Returns a read-only list of the currently checked items in the control.
    int
    Returns the count of items in the control.
    boolean
    isChecked(T item)
    Returns true if the given item is checked in the control.
    boolean
    Returns true if there are no checked items in the control.
    void
    Toggles the check state for the given item in the control.
  • Method Details

    • getItemCount

      int getItemCount()
      Returns the count of items in the control.
    • getCheckedItems

      javafx.collections.ObservableList<T> getCheckedItems()
      Returns a read-only list of the currently checked items in the control.
    • checkAll

      void checkAll()
      Checks all items in the control
    • clearCheck

      void clearCheck(T item)
      Unchecks the given item in the control
      Parameters:
      item - The item to uncheck.
    • clearChecks

      void clearChecks()
      Unchecks all items in the control
    • isEmpty

      boolean isEmpty()
      Returns true if there are no checked items in the control.
    • isChecked

      boolean isChecked(T item)
      Returns true if the given item is checked in the control.
      Parameters:
      item - Item whose check property is to be tested.
    • check

      void check(T item)
      Checks the given item in the control.
      Parameters:
      item - The item to check.
    • toggleCheckState

      void toggleCheckState(T item)
      Toggles the check state for the given item in the control.
      Parameters:
      item - The item for which check state needs to be toggled.