android.widget
Class BaseExpandableListAdapter

java.lang.Object
  extended by android.widget.BaseExpandableListAdapter
All Implemented Interfaces:
ExpandableListAdapter, HeterogeneousExpandableList
Direct Known Subclasses:
CursorTreeAdapter, SimpleExpandableListAdapter

public abstract class BaseExpandableListAdapter
extends Object
implements ExpandableListAdapter, HeterogeneousExpandableList


Constructor Summary
BaseExpandableListAdapter()
           
 
Method Summary
 boolean areAllItemsEnabled()
           
 int getChildType(int groupPosition, int childPosition)
           
 int getChildTypeCount()
           
 long getCombinedChildId(long groupId, long childId)
           
 long getCombinedGroupId(long groupId)
           
 int getGroupType(int groupPosition)
           
 int getGroupTypeCount()
           
 boolean isEmpty()
           
 void notifyDataSetChanged()
           
 void notifyDataSetInvalidated()
           
 void onGroupCollapsed(int groupPosition)
           
 void onGroupExpanded(int groupPosition)
           
 void registerDataSetObserver(DataSetObserver observer)
           
 void unregisterDataSetObserver(DataSetObserver observer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.widget.ExpandableListAdapter
getChild, getChildId, getChildrenCount, getChildView, getGroup, getGroupCount, getGroupId, getGroupView, hasStableIds, isChildSelectable
 

Constructor Detail

BaseExpandableListAdapter

public BaseExpandableListAdapter()
Method Detail

registerDataSetObserver

public void registerDataSetObserver(DataSetObserver observer)
Specified by:
registerDataSetObserver in interface ExpandableListAdapter

unregisterDataSetObserver

public void unregisterDataSetObserver(DataSetObserver observer)
Specified by:
unregisterDataSetObserver in interface ExpandableListAdapter

notifyDataSetInvalidated

public void notifyDataSetInvalidated()

notifyDataSetChanged

public void notifyDataSetChanged()

areAllItemsEnabled

public boolean areAllItemsEnabled()
Specified by:
areAllItemsEnabled in interface ExpandableListAdapter

onGroupCollapsed

public void onGroupCollapsed(int groupPosition)
Specified by:
onGroupCollapsed in interface ExpandableListAdapter

onGroupExpanded

public void onGroupExpanded(int groupPosition)
Specified by:
onGroupExpanded in interface ExpandableListAdapter

getCombinedChildId

public long getCombinedChildId(long groupId,
                               long childId)
Specified by:
getCombinedChildId in interface ExpandableListAdapter

getCombinedGroupId

public long getCombinedGroupId(long groupId)
Specified by:
getCombinedGroupId in interface ExpandableListAdapter

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ExpandableListAdapter

getChildType

public int getChildType(int groupPosition,
                        int childPosition)
Specified by:
getChildType in interface HeterogeneousExpandableList

getChildTypeCount

public int getChildTypeCount()
Specified by:
getChildTypeCount in interface HeterogeneousExpandableList

getGroupType

public int getGroupType(int groupPosition)
Specified by:
getGroupType in interface HeterogeneousExpandableList

getGroupTypeCount

public int getGroupTypeCount()
Specified by:
getGroupTypeCount in interface HeterogeneousExpandableList


Copyright © 2008-2012. All Rights Reserved.