public class EnrollmentExpandableListAdapter extends BaseExpandableListAdapter
Modifier and Type | Class and Description |
---|---|
private static class |
EnrollmentExpandableListAdapter.ChildHolder |
private static class |
EnrollmentExpandableListAdapter.GroupHolder |
Modifier and Type | Field and Description |
---|---|
private HashMap<Long,ArrayList<Group>> |
children |
private Context |
context |
private ArrayList<Model> |
groups |
private int |
layoutChild |
private int |
layoutGroup |
private LayoutInflater |
mInflater |
private HashMap<Long,boolean[]> |
realMembership |
private int |
role |
Constructor and Description |
---|
EnrollmentExpandableListAdapter(Context context,
ArrayList<Model> groups,
HashMap<Long,ArrayList<Group>> children,
int layoutGroup,
int layoutChild,
int currentRole) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkItem(int groupPosition,
int childPosition)
The implementation of expandable list recycle the view.
|
Object |
getChild(int groupPosition,
int childPosition) |
long |
getChildId(int groupPosition,
int childPosition) |
int |
getChildrenCount(int groupPosition) |
View |
getChildView(int groupPosition,
int childPosition,
boolean isLastChild,
View convertView,
ViewGroup parent) |
ArrayList<Long> |
getChosenGroupCodes() |
String |
getChosenGroupCodesAsString() |
Object |
getGroup(int groupPosition) |
int |
getGroupCount() |
long |
getGroupId(int groupPosition) |
View |
getGroupView(int groupPosition,
boolean isExpanded,
View convertView,
ViewGroup parent) |
boolean |
hasStableIds() |
boolean |
isChildSelectable(int groupPosition,
int childPosition) |
void |
resetChildren(HashMap<Long,ArrayList<Group>> children) |
private void |
setRealInscription() |
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, notifyDataSetChanged, notifyDataSetInvalidated, onGroupCollapsed, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserver
private int role
private int layoutGroup
private int layoutChild
private final LayoutInflater mInflater
private final Context context
public Object getChild(int groupPosition, int childPosition)
public long getChildId(int groupPosition, int childPosition)
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)
public int getChildrenCount(int groupPosition)
public Object getGroup(int groupPosition)
public int getGroupCount()
public long getGroupId(int groupPosition)
public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)
public boolean hasStableIds()
public boolean isChildSelectable(int groupPosition, int childPosition)
public boolean checkItem(int groupPosition, int childPosition)
public String getChosenGroupCodesAsString()
private void setRealInscription()