-
- All Superinterfaces:
CheckModel<T>
public interface IndexedCheckModel<T> extends CheckModel<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
check(int index)
Checks the item in the given index in the control.void
checkIndices(int... indices)
Checks the given indices in the controlvoid
clearCheck(int index)
Unchecks the given index in the controlObservableList<Integer>
getCheckedIndices()
Returns a read-only list of the currently checked indices in the control.T
getItem(int index)
Returns the item in the given index in the control.int
getItemIndex(T item)
Returns the index of the given item.boolean
isChecked(int index)
Returns true if the given index represents an item that is checked in the control.void
toggleCheckState(int index)
Toggles the check state of the item in the given index of the control.-
Methods inherited from interface org.controlsfx.control.CheckModel
check, checkAll, clearCheck, clearChecks, getCheckedItems, getItemCount, isChecked, isEmpty, toggleCheckState
-
-
-
-
Method Detail
-
getItem
T getItem(int index)
Returns the item in the given index in the control.- Parameters:
index
- Index for the item in the control.
-
getItemIndex
int getItemIndex(T item)
Returns the index of the given item.- Parameters:
item
- Item whose index needs to be fetched.
-
getCheckedIndices
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.
-
-