android.widget
Class SimpleCursorTreeAdapter

java.lang.Object
  extended by android.widget.BaseExpandableListAdapter
      extended by android.widget.CursorTreeAdapter
          extended by android.widget.ResourceCursorTreeAdapter
              extended by android.widget.SimpleCursorTreeAdapter
All Implemented Interfaces:
ExpandableListAdapter, Filterable, HeterogeneousExpandableList

public abstract class SimpleCursorTreeAdapter
extends ResourceCursorTreeAdapter


Nested Class Summary
static interface SimpleCursorTreeAdapter.ViewBinder
           
 
Constructor Summary
SimpleCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, String[] groupFrom, int[] groupTo, int childLayout, int lastChildLayout, String[] childFrom, int[] childTo)
           
SimpleCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, String[] groupFrom, int[] groupTo, int childLayout, String[] childFrom, int[] childTo)
           
SimpleCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, String[] groupFrom, int[] groupTo, int childLayout, String[] childFrom, int[] childTo)
           
 
Method Summary
protected  void bindChildView(View view, Context context, Cursor cursor, boolean isLastChild)
           
protected  void bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded)
           
 SimpleCursorTreeAdapter.ViewBinder getViewBinder()
           
 void setViewBinder(SimpleCursorTreeAdapter.ViewBinder viewBinder)
           
protected  void setViewImage(ImageView v, String value)
           
 void setViewText(TextView v, String text)
           
 
Methods inherited from class android.widget.ResourceCursorTreeAdapter
newChildView, newGroupView
 
Methods inherited from class android.widget.CursorTreeAdapter
changeCursor, convertToString, getChild, getChildId, getChildrenCount, getChildrenCursor, getChildView, getCursor, getFilter, getFilterQueryProvider, getGroup, getGroupCount, getGroupId, getGroupView, hasStableIds, isChildSelectable, notifyDataSetChanged, notifyDataSetChanged, notifyDataSetInvalidated, onGroupCollapsed, runQueryOnBackgroundThread, setChildrenCursor, setFilterQueryProvider, setGroupCursor
 
Methods inherited from class android.widget.BaseExpandableListAdapter
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCursorTreeAdapter

public SimpleCursorTreeAdapter(Context context,
                               Cursor cursor,
                               int collapsedGroupLayout,
                               int expandedGroupLayout,
                               String[] groupFrom,
                               int[] groupTo,
                               int childLayout,
                               int lastChildLayout,
                               String[] childFrom,
                               int[] childTo)

SimpleCursorTreeAdapter

public SimpleCursorTreeAdapter(Context context,
                               Cursor cursor,
                               int collapsedGroupLayout,
                               int expandedGroupLayout,
                               String[] groupFrom,
                               int[] groupTo,
                               int childLayout,
                               String[] childFrom,
                               int[] childTo)

SimpleCursorTreeAdapter

public SimpleCursorTreeAdapter(Context context,
                               Cursor cursor,
                               int groupLayout,
                               String[] groupFrom,
                               int[] groupTo,
                               int childLayout,
                               String[] childFrom,
                               int[] childTo)
Method Detail

getViewBinder

public SimpleCursorTreeAdapter.ViewBinder getViewBinder()

setViewBinder

public void setViewBinder(SimpleCursorTreeAdapter.ViewBinder viewBinder)

bindChildView

protected void bindChildView(View view,
                             Context context,
                             Cursor cursor,
                             boolean isLastChild)
Specified by:
bindChildView in class CursorTreeAdapter

bindGroupView

protected void bindGroupView(View view,
                             Context context,
                             Cursor cursor,
                             boolean isExpanded)
Specified by:
bindGroupView in class CursorTreeAdapter

setViewImage

protected void setViewImage(ImageView v,
                            String value)

setViewText

public void setViewText(TextView v,
                        String text)


Copyright © 2008-2012. All Rights Reserved.