org.android.activityminer.app.db
Class DBSampleStatisticAdapter

Package class diagram package DBSampleStatisticAdapter
java.lang.Object
  extended by android.widget.BaseAdapter
      extended by android.widget.ArrayAdapter<DBSampleStatistic>
          extended by org.android.activityminer.app.db.DBSampleStatisticAdapter
All Implemented Interfaces:
Adapter, Filterable, ListAdapter, SpinnerAdapter

public class DBSampleStatisticAdapter
extends ArrayAdapter<DBSampleStatistic>

The array adapter for the sample statistics view.


Field Summary
private  Activity context
          The activity context
private  List<DBSampleStatistic> listStatistics
          The list with the statistics entries.
private  ActivityLabelMap mapActivityLabels
          The activity identifier map
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
DBSampleStatisticAdapter(Activity context, List<DBSampleStatistic> listStatistics, ActivityLabelMap mapActivityLabels)
          Constructor
 
Method Summary
 View getView(int position, View convertView, ViewGroup parent)
           
 
Methods inherited from class android.widget.ArrayAdapter
add, addAll, addAll, clear, createFromResource, getContext, getCount, getDropDownView, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setNotifyOnChange, sort
 
Methods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listStatistics

private final List<DBSampleStatistic> listStatistics
The list with the statistics entries.


context

private final Activity context
The activity context


mapActivityLabels

private final ActivityLabelMap mapActivityLabels
The activity identifier map

Constructor Detail

DBSampleStatisticAdapter

public DBSampleStatisticAdapter(Activity context,
                                List<DBSampleStatistic> listStatistics,
                                ActivityLabelMap mapActivityLabels)
Constructor

Parameters:
context - the context
listStatistics - the statistics list
mapActivityLabels - the identifier map
Method Detail

getView

public View getView(int position,
                    View convertView,
                    ViewGroup parent)
Specified by:
getView in interface Adapter
Overrides:
getView in class ArrayAdapter<DBSampleStatistic>