public abstract class CursorTreeAdapter extends BaseExpandableListAdapter implements Filterable
| Constructor and Description |
|---|
CursorTreeAdapter(Cursor cursor,
Context context) |
CursorTreeAdapter(Cursor cursor,
Context context,
boolean autoRequery) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bindChildView(View view,
Context context,
Cursor cursor,
boolean isLastChild) |
protected abstract void |
bindGroupView(View view,
Context context,
Cursor cursor,
boolean isExpanded) |
void |
changeCursor(Cursor cursor) |
String |
convertToString(Cursor cursor) |
Cursor |
getChild(int groupPosition,
int childPosition) |
long |
getChildId(int groupPosition,
int childPosition) |
int |
getChildrenCount(int groupPosition) |
protected abstract Cursor |
getChildrenCursor(Cursor groupCursor) |
View |
getChildView(int groupPosition,
int childPosition,
boolean isLastChild,
View convertView,
ViewGroup parent) |
Cursor |
getCursor() |
Filter |
getFilter() |
FilterQueryProvider |
getFilterQueryProvider() |
Cursor |
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) |
protected abstract View |
newChildView(Context context,
Cursor cursor,
boolean isLastChild,
ViewGroup parent) |
protected abstract View |
newGroupView(Context context,
Cursor cursor,
boolean isExpanded,
ViewGroup parent) |
void |
notifyDataSetChanged() |
void |
notifyDataSetChanged(boolean releaseCursors) |
void |
notifyDataSetInvalidated() |
void |
onGroupCollapsed(int groupPosition) |
Cursor |
runQueryOnBackgroundThread(CharSequence constraint) |
void |
setChildrenCursor(int groupPosition,
Cursor childrenCursor) |
void |
setFilterQueryProvider(FilterQueryProvider filterQueryProvider) |
void |
setGroupCursor(Cursor cursor) |
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserverpublic void setGroupCursor(Cursor cursor)
public void setChildrenCursor(int groupPosition,
Cursor childrenCursor)
public Cursor getChild(int groupPosition, int childPosition)
getChild in interface ExpandableListAdapterpublic long getChildId(int groupPosition,
int childPosition)
getChildId in interface ExpandableListAdapterpublic int getChildrenCount(int groupPosition)
getChildrenCount in interface ExpandableListAdapterpublic Cursor getGroup(int groupPosition)
getGroup in interface ExpandableListAdapterpublic int getGroupCount()
getGroupCount in interface ExpandableListAdapterpublic long getGroupId(int groupPosition)
getGroupId in interface ExpandableListAdapterpublic View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)
getGroupView in interface ExpandableListAdapterprotected abstract View newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent)
protected abstract void bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded)
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)
getChildView in interface ExpandableListAdapterprotected abstract View newChildView(Context context, Cursor cursor, boolean isLastChild, ViewGroup parent)
protected abstract void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild)
public boolean isChildSelectable(int groupPosition,
int childPosition)
isChildSelectable in interface ExpandableListAdapterpublic boolean hasStableIds()
hasStableIds in interface ExpandableListAdapterpublic void notifyDataSetChanged()
notifyDataSetChanged in class BaseExpandableListAdapterpublic void notifyDataSetChanged(boolean releaseCursors)
public void notifyDataSetInvalidated()
notifyDataSetInvalidated in class BaseExpandableListAdapterpublic void onGroupCollapsed(int groupPosition)
onGroupCollapsed in interface ExpandableListAdapteronGroupCollapsed in class BaseExpandableListAdapterpublic Cursor runQueryOnBackgroundThread(CharSequence constraint)
public Filter getFilter()
getFilter in interface Filterablepublic FilterQueryProvider getFilterQueryProvider()
public void setFilterQueryProvider(FilterQueryProvider filterQueryProvider)
public void changeCursor(Cursor cursor)
public Cursor getCursor()
Copyright © 2008-2013. All Rights Reserved.