java.lang.Object | ||
↳ | android.support.v17.leanback.widget.ObjectAdapter | |
↳ | android.support.v17.leanback.widget.CursorObjectAdapter |
An ObjectAdapter
implemented with a Cursor
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.ObjectAdapter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an adapter with the given
PresenterSelector .
| |||||||||||
Constructs an adapter that uses the given
Presenter for all items.
| |||||||||||
Constructs an adapter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Changes the underlying cursor to a new cursor.
| |||||||||||
Closes this adapter, closing the backing
Cursor as well.
| |||||||||||
Returns the item for the given position.
| |||||||||||
Returns the
Cursor backing the adapter.
| |||||||||||
Returns the
CursorMapper used to convert Cursor rows into
Objects.
| |||||||||||
Returns true if the adapter, and hence the backing
Cursor , is closed; false
otherwise.
| |||||||||||
Sets the
CursorMapper used to convert Cursor rows into
Objects.
| |||||||||||
Returns the number of items in the adapter.
| |||||||||||
Swap in a new Cursor, returning the old Cursor.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes an item from the cache.
| |||||||||||
Removes
count items starting at index .
| |||||||||||
Called whenever the cursor changes.
| |||||||||||
Called when
setMapper(CursorMapper) is called and a different
mapper is provided.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.ObjectAdapter
| |||||||||||
From class
java.lang.Object
|
Constructs an adapter with the given PresenterSelector
.
Constructs an adapter that uses the given Presenter
for all items.
Constructs an adapter.
Changes the underlying cursor to a new cursor. If there is an existing cursor it will be closed if it is different than the new cursor.
cursor | The new cursor to be used. |
---|
Returns the CursorMapper
used to convert Cursor
rows into
Objects.
Returns true if the adapter, and hence the backing Cursor
, is closed; false
otherwise.
Sets the CursorMapper
used to convert Cursor
rows into
Objects.
Returns the number of items in the adapter.
Swap in a new Cursor, returning the old Cursor. Unlike changeCursor(Cursor), the returned old Cursor is not closed.
cursor | The new cursor to be used. |
---|
Removes an item from the cache. This will force the item to be re-read from the data source the next time (@link #get(int)} is called.
Removes count
items starting at index
.
Called whenever the cursor changes.
Called when setMapper(CursorMapper)
is called and a different
mapper is provided.