- All Known Subinterfaces:
IndexedCheckModel<T>
public interface CheckModel<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks the given item in the control.void
checkAll()
Checks all items in the controlvoid
clearCheck
(T item) Unchecks the given item in the controlvoid
Unchecks all items in the controljavafx.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
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 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
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
Returns true if the given item is checked in the control.- Parameters:
item
- Item whose check property is to be tested.
-
check
Checks the given item in the control.- Parameters:
item
- The item to check.
-
toggleCheckState
Toggles the check state for the given item in the control.- Parameters:
item
- The item for which check state needs to be toggled.
-