android.widget
Class BaseAdapter

java.lang.Object
  extended by android.widget.BaseAdapter
All Implemented Interfaces:
Adapter, ListAdapter, SpinnerAdapter
Direct Known Subclasses:
ArrayAdapter, CursorAdapter, SimpleAdapter

public abstract class BaseAdapter
extends Object
implements ListAdapter, SpinnerAdapter


Field Summary
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
BaseAdapter()
           
 
Method Summary
 boolean areAllItemsEnabled()
           
 View getDropDownView(int position, View convertView, ViewGroup parent)
           
 int getItemViewType(int position)
           
 int getViewTypeCount()
           
 boolean hasStableIds()
           
 boolean isEmpty()
           
 boolean isEnabled(int position)
           
 void notifyDataSetChanged()
           
 void notifyDataSetInvalidated()
           
 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.Adapter
getCount, getItem, getItemId, getView
 

Constructor Detail

BaseAdapter

public BaseAdapter()
Method Detail

hasStableIds

public boolean hasStableIds()
Specified by:
hasStableIds in interface Adapter

registerDataSetObserver

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

unregisterDataSetObserver

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

notifyDataSetChanged

public void notifyDataSetChanged()

notifyDataSetInvalidated

public void notifyDataSetInvalidated()

areAllItemsEnabled

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

isEnabled

public boolean isEnabled(int position)
Specified by:
isEnabled in interface ListAdapter

getDropDownView

public View getDropDownView(int position,
                            View convertView,
                            ViewGroup parent)
Specified by:
getDropDownView in interface SpinnerAdapter

getItemViewType

public int getItemViewType(int position)
Specified by:
getItemViewType in interface Adapter

getViewTypeCount

public int getViewTypeCount()
Specified by:
getViewTypeCount in interface Adapter

isEmpty

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


Copyright © 2008-2012. All Rights Reserved.