Interface CheckModel<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void check​(T item)
      Checks the given item in the control.
      void checkAll()
      Checks all items in the control
      void clearCheck​(T item)
      Unchecks the given item in the control
      void clearChecks()
      Unchecks all items in the control
      ObservableList<T> getCheckedItems()
      Returns a read-only list of the currently checked items in the control.
      int getItemCount()
      Returns the count of items in the control.
      boolean isChecked​(T item)
      Returns true if the given item is checked in the control.
      boolean isEmpty()
      Returns true if there are no checked items in the control.
      void toggleCheckState​(T item)
      Toggles the check state for the given item in the control.
    • Method Detail

      • getItemCount

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

        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.