|
||||||||||
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.db.ExpandableDBRecordingStatisticAdapter
public class ExpandableDBRecordingStatisticAdapter
The adapter for the recording sequences statistics.
Field Summary | |
---|---|
private Activity |
context
The activity context |
private SimpleDateFormat |
dateFormatter
The date formatter. |
private List<DBRecordingStatisticSequenceEntry> |
entries
The list with the entries. |
private SimpleDateFormat |
timeFormatter
The time formatter. |
Constructor Summary | |
---|---|
ExpandableDBRecordingStatisticAdapter(Activity context,
DBRecordingStatistic statistic)
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)
|
Object |
getGroup(int groupPosition)
|
int |
getGroupCount()
|
long |
getGroupId(int groupPosition)
|
View |
getGroupView(int groupPosition,
boolean isExpanded,
View convertView,
ViewGroup parent)
|
DBRecordingStatisticEntry |
getRecording(int groupPosition,
int childPosition)
Getter for a recording by group and child position |
DBRecordingStatisticSequenceEntry |
getSequence(int groupPosition)
Getter for sequences by position |
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 final List<DBRecordingStatisticSequenceEntry> entries
private final SimpleDateFormat dateFormatter
private final SimpleDateFormat timeFormatter
Constructor Detail |
---|
public ExpandableDBRecordingStatisticAdapter(Activity context, DBRecordingStatistic statistic)
context
- the contextstatistic
- the database recording statisticMethod 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 DBRecordingStatisticSequenceEntry getSequence(int groupPosition)
groupPosition
- the sequence position
public Object getChild(int groupPosition, int childPosition)
public DBRecordingStatisticEntry getRecording(int groupPosition, int childPosition)
groupPosition
- the sequence position *childPosition
- the recording 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 |