@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)
Deprecated.
|
void |
__constructor__(android.content.Context context,
android.database.Cursor c,
boolean autoRequery)
Deprecated.
|
void |
__constructor__(android.content.Context context,
android.database.Cursor c,
int flags) |
void |
changeCursor(android.database.Cursor newCursor) |
CharSequence |
convertToString(android.database.Cursor cursor) |
int |
getCount() |
android.database.Cursor |
getCursor() |
android.widget.FilterQueryProvider |
getFilterQueryProvider() |
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(CharSequence constraint) |
void |
setFilterQueryProvider(android.widget.FilterQueryProvider filterQueryProvider) |
void |
setViews(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(List<android.view.View> views)
views - The list of views@Deprecated public void __constructor__(android.content.Context context, android.database.Cursor c)
@Deprecated 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 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 CharSequence convertToString(android.database.Cursor cursor)
@Implementation public android.database.Cursor runQueryOnBackgroundThread(CharSequence constraint)
@Implementation public android.widget.FilterQueryProvider getFilterQueryProvider()
@Implementation public void setFilterQueryProvider(android.widget.FilterQueryProvider filterQueryProvider)
protected void onContentChangedInternal()
Copyright © 2015. All rights reserved.