public class ChildCheckController
extends java.lang.Object
| Constructor and Description |
|---|
ChildCheckController(ExpandableList expandableList,
OnChildrenCheckStateChangedListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkChild(boolean checked,
int groupIndex,
int childIndex) |
boolean |
checksChanged() |
void |
clearCheckStates()
Clear any choices previously checked
|
java.util.List<java.lang.Integer> |
getCheckedPositions() |
boolean |
isChildChecked(ExpandableListPosition listPosition) |
void |
onChildCheckChanged(boolean checked,
ExpandableListPosition listPosition)
Triggered by a click event on a
CheckableChildViewHolder causing the Checkable
object to change checked states |
public ChildCheckController(ExpandableList expandableList,
OnChildrenCheckStateChangedListener listener)
public void onChildCheckChanged(boolean checked,
ExpandableListPosition listPosition)
CheckableChildViewHolder causing the Checkable
object to change checked stateschecked - The current checked state of the viewlistPosition - The flat position (raw index) of the CheckableChildViewHolderpublic void checkChild(boolean checked,
int groupIndex,
int childIndex)
public boolean isChildChecked(ExpandableListPosition listPosition)
listPosition - the ExpandableListPosition representation of a child list itempublic java.util.List<java.lang.Integer> getCheckedPositions()
public boolean checksChanged()
public void clearCheckStates()