-
Method Summary
void
Checks the item in the given index in the control.
void
Checks the given indices in the control
void
Unchecks the given index in the control
javafx.collections.ObservableList<Integer>
Returns a read-only list of the currently checked indices in the control.
Returns the item in the given index in the control.
int
Returns the index of the given item.
boolean
Returns true if the given index represents an item that is checked in the control.
void
Toggles the check state of the item in the given index of the control.
-
Method Details
-
getItem
Returns the item in the given index in the control.
- Parameters:
index
- Index for the item in the control.
-
getItemIndex
Returns the index of the given item.
- Parameters:
item
- Item whose index needs to be fetched.
-
getCheckedIndices
javafx.collections.ObservableList<Integer> getCheckedIndices()
Returns a read-only list of the currently checked indices in the control.
-
checkIndices
void checkIndices(int... indices)
Checks the given indices in the control
- Parameters:
indices
- Indices of item to uncheck.
-
clearCheck
void clearCheck(int index)
Unchecks the given index in the control
- Parameters:
index
- Index of the item to uncheck.
-
isChecked
boolean isChecked(int index)
Returns true if the given index represents an item that is checked in the control.
- Parameters:
index
- Index of the item to be tested.
-
check
void check(int index)
Checks the item in the given index in the control.
- Parameters:
index
- Index of the item to check.
-
toggleCheckState
void toggleCheckState(int index)
Toggles the check state of the item in the given index of the control.
- Parameters:
index
- Index of the item whose check state needs to be toggled.