android.widget
Class SimpleCursorAdapter

java.lang.Object
  extended by android.widget.BaseAdapter
      extended by android.widget.CursorAdapter
          extended by android.widget.ResourceCursorAdapter
              extended by android.widget.SimpleCursorAdapter
All Implemented Interfaces:
Adapter, Filterable, ListAdapter, SpinnerAdapter

public class SimpleCursorAdapter
extends ResourceCursorAdapter


Nested Class Summary
static interface SimpleCursorAdapter.CursorToStringConverter
           
static interface SimpleCursorAdapter.ViewBinder
           
 
Field Summary
 
Fields inherited from class android.widget.CursorAdapter
FLAG_AUTO_REQUERY, FLAG_REGISTER_CONTENT_OBSERVER
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to)
           
SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to, int flags)
           
 
Method Summary
 void bindView(View view, Context context, Cursor cursor)
           
 void changeCursorAndColumns(Cursor c, String[] from, int[] to)
           
 CharSequence convertToString(Cursor cursor)
           
 SimpleCursorAdapter.CursorToStringConverter getCursorToStringConverter()
           
 int getStringConversionColumn()
           
 SimpleCursorAdapter.ViewBinder getViewBinder()
           
 void setCursorToStringConverter(SimpleCursorAdapter.CursorToStringConverter cursorToStringConverter)
           
 void setStringConversionColumn(int stringConversionColumn)
           
 void setViewBinder(SimpleCursorAdapter.ViewBinder viewBinder)
           
 void setViewImage(ImageView v, String value)
           
 void setViewText(TextView v, String text)
           
 Cursor swapCursor(Cursor c)
           
 
Methods inherited from class android.widget.ResourceCursorAdapter
newDropDownView, newView, setDropDownViewResource, setViewResource
 
Methods inherited from class android.widget.CursorAdapter
changeCursor, getCount, getCursor, getDropDownView, getFilter, getFilterQueryProvider, getItem, getItemId, getView, hasStableIds, init, onContentChanged, runQueryOnBackgroundThread, setFilterQueryProvider
 
Methods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getItemViewType, getViewTypeCount, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCursorAdapter

public SimpleCursorAdapter(Context context,
                           int layout,
                           Cursor c,
                           String[] from,
                           int[] to)

SimpleCursorAdapter

public SimpleCursorAdapter(Context context,
                           int layout,
                           Cursor c,
                           String[] from,
                           int[] to,
                           int flags)
Method Detail

bindView

public void bindView(View view,
                     Context context,
                     Cursor cursor)
Specified by:
bindView in class CursorAdapter

getViewBinder

public SimpleCursorAdapter.ViewBinder getViewBinder()

setViewBinder

public void setViewBinder(SimpleCursorAdapter.ViewBinder viewBinder)

setViewImage

public void setViewImage(ImageView v,
                         String value)

setViewText

public void setViewText(TextView v,
                        String text)

getStringConversionColumn

public int getStringConversionColumn()

setStringConversionColumn

public void setStringConversionColumn(int stringConversionColumn)

getCursorToStringConverter

public SimpleCursorAdapter.CursorToStringConverter getCursorToStringConverter()

setCursorToStringConverter

public void setCursorToStringConverter(SimpleCursorAdapter.CursorToStringConverter cursorToStringConverter)

convertToString

public CharSequence convertToString(Cursor cursor)
Overrides:
convertToString in class CursorAdapter

swapCursor

public Cursor swapCursor(Cursor c)
Overrides:
swapCursor in class CursorAdapter

changeCursorAndColumns

public void changeCursorAndColumns(Cursor c,
                                   String[] from,
                                   int[] to)


Copyright © 2008-2012. All Rights Reserved.