|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.widget.BaseAdapter
org.android.activityminer.app.activities.ActivityTreeListAdapter
org.android.activityminer.app.activities.ActivityTreeListPreferenceAdapter
public class ActivityTreeListPreferenceAdapter
Adapter for the tree list view for the activity preference dialog.
Field Summary | |
---|---|
private boolean[] |
checkedStates
The checked sates |
private SparseArray<View> |
mapIndexToView
Map for quick view by index lookups |
private android.support.v4.util.LongSparseArray<Integer> |
mapLabel2Index
Map for quick activity label index lookups |
Fields inherited from interface android.widget.Adapter |
---|
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
Constructor Summary | |
---|---|
ActivityTreeListPreferenceAdapter(Context context,
DBStatistic dbStatistics,
List<Long> selectedValues)
Constructor |
Method Summary | |
---|---|
boolean[] |
getCheckedStates()
Getter for the checkedStates |
View |
getView(int position,
View convertView,
ViewGroup parent)
|
void |
onClick(View v)
|
protected void |
updateCheckBox(View view)
Does update the check box in the view |
Methods inherited from class org.android.activityminer.app.activities.ActivityTreeListAdapter |
---|
getContext, getCount, getItem, getItemId |
Methods inherited from class android.widget.BaseAdapter |
---|
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final boolean[] checkedStates
private final android.support.v4.util.LongSparseArray<Integer> mapLabel2Index
private final SparseArray<View> mapIndexToView
Constructor Detail |
---|
public ActivityTreeListPreferenceAdapter(Context context, DBStatistic dbStatistics, List<Long> selectedValues)
context
- the activity contextdbStatistics
- the database statistic for classes (activity labels)selectedValues
- the selected values from preferencesMethod Detail |
---|
public boolean[] getCheckedStates()
public View getView(int position, View convertView, ViewGroup parent)
getView
in interface Adapter
getView
in class ActivityTreeListAdapter
protected void updateCheckBox(View view)
view
- the view containerpublic void onClick(View v)
onClick
in interface View.OnClickListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |