- All Known Subinterfaces:
IndexedCheckModel<T>
public interface CheckModel<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks the given item in the control.voidcheckAll()Checks all items in the controlvoidclearCheck(T item) Unchecks the given item in the controlvoidUnchecks all items in the controlReturns a read-only list of the currently checked items in the control.intReturns the count of items in the control.booleanReturns true if the given item is checked in the control.booleanisEmpty()Returns true if there are no checked items in the control.voidtoggleCheckState(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
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.
-