@Implements(value=android.widget.CursorAdapter.class) public class ShadowCursorAdapter extends ShadowBaseAdapter
CursorAdapter.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mAutoRequery |
protected org.robolectric.shadows.ShadowCursorAdapter.ChangeObserver |
mChangeObserver |
protected android.content.Context |
mContext |
protected android.database.Cursor |
mCursor |
protected android.database.DataSetObserver |
mDataSetObserver |
protected boolean |
mDataValid |
protected android.widget.FilterQueryProvider |
mFilterQueryProvider |
protected int |
mRowIDColumn |
| Constructor and Description |
|---|
ShadowCursorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
__constructor__(android.content.Context context,
android.database.Cursor c) |
void |
__constructor__(android.content.Context context,
android.database.Cursor c,
boolean autoRequery) |
void |
__constructor__(android.content.Context context,
android.database.Cursor c,
int flags) |
void |
changeCursor(android.database.Cursor newCursor) |
java.lang.CharSequence |
convertToString(android.database.Cursor cursor) |
int |
getCount() |
android.database.Cursor |
getCursor() |
android.widget.FilterQueryProvider |
getFilterQueryProvider() |
java.lang.Object |
getItem(int position) |
long |
getItemId(int position) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
boolean |
hasStableIds() |
protected void |
onContentChangedInternal() |
android.database.Cursor |
runQueryOnBackgroundThread(java.lang.CharSequence constraint) |
void |
setFilterQueryProvider(android.widget.FilterQueryProvider filterQueryProvider) |
void |
setViews(java.util.List<android.view.View> views)
Non-Android API.
|
android.database.Cursor |
swapCursor(android.database.Cursor cursor) |
clearWasDataSetChangedCalledFlag, notifyDataSetChanged, wasNotifyDataSetChangedCalledprotected boolean mDataValid
protected boolean mAutoRequery
protected android.database.Cursor mCursor
protected android.content.Context mContext
protected int mRowIDColumn
protected org.robolectric.shadows.ShadowCursorAdapter.ChangeObserver mChangeObserver
protected android.database.DataSetObserver mDataSetObserver
protected android.widget.FilterQueryProvider mFilterQueryProvider
@Implementation
public android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
public void setViews(java.util.List<android.view.View> views)
views - The list of viewspublic void __constructor__(android.content.Context context,
android.database.Cursor c)
public void __constructor__(android.content.Context context,
android.database.Cursor c,
boolean autoRequery)
public void __constructor__(android.content.Context context,
android.database.Cursor c,
int flags)
@Implementation public android.database.Cursor getCursor()
@Implementation public int getCount()
@Implementation public java.lang.Object getItem(int position)
@Implementation public long getItemId(int position)
@Implementation public boolean hasStableIds()
@Implementation public android.database.Cursor swapCursor(android.database.Cursor cursor)
@Implementation public void changeCursor(android.database.Cursor newCursor)
@Implementation public java.lang.CharSequence convertToString(android.database.Cursor cursor)
@Implementation public android.database.Cursor runQueryOnBackgroundThread(java.lang.CharSequence constraint)
@Implementation public android.widget.FilterQueryProvider getFilterQueryProvider()
@Implementation public void setFilterQueryProvider(android.widget.FilterQueryProvider filterQueryProvider)
protected void onContentChangedInternal()