|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.widget.BaseExpandableListAdapter
org.android.activityminer.app.evaluation.ExpandableResultListAdapter
public class ExpandableResultListAdapter
The adapter for the expandable result list.
Field Summary | |
---|---|
private Activity |
context
The activity context |
private List<EvaluationResult> |
evalResults
The evaluation result data for the child entries. |
private String |
fmtDoublePrec0
format string for double precision |
private String |
fmtDoublePrec3
format string for double precision |
private String |
fmtPercentageWithDoublePrec2
format string for double precision percent value |
private String |
formatString
The format string for confusion matrix entries (depends on total sample count) |
private List<String> |
groups
The groups description. |
private android.support.v4.util.LongSparseArray<String> |
mapActivityId2Name
The activity label map |
private String |
sClass
The class description |
Constructor Summary | |
---|---|
ExpandableResultListAdapter(Activity context,
List<EvaluationResult> evalResults,
android.support.v4.util.LongSparseArray<String> mapActivityId2Name)
Constructor |
Method Summary | |
---|---|
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)
|
EvaluationResult |
getEvaluationResult(int groupPosition)
Getter for the evaluation result at a given group position |
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)
|
Methods inherited from class android.widget.BaseExpandableListAdapter |
---|
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, notifyDataSetChanged, notifyDataSetInvalidated, onGroupCollapsed, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Activity context
private List<EvaluationResult> evalResults
private List<String> groups
private android.support.v4.util.LongSparseArray<String> mapActivityId2Name
private final String fmtDoublePrec0
private final String fmtDoublePrec3
private final String fmtPercentageWithDoublePrec2
private final String sClass
private final String formatString
Constructor Detail |
---|
public ExpandableResultListAdapter(Activity context, List<EvaluationResult> evalResults, android.support.v4.util.LongSparseArray<String> mapActivityId2Name)
context
- the activity contextevalResults
- the list with the evaluation resultsmapActivityId2Name
- the activity identifier to name mappingMethod Detail |
---|
public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)
public int getGroupCount()
public int getChildrenCount(int groupPosition)
public Object getGroup(int groupPosition)
public Object getChild(int groupPosition, int childPosition)
public EvaluationResult getEvaluationResult(int groupPosition)
groupPosition
- the group position
public long getGroupId(int groupPosition)
public long getChildId(int groupPosition, int childPosition)
public boolean hasStableIds()
public boolean isChildSelectable(int groupPosition, int childPosition)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |