public abstract class JotyResourceCursorAdapter
extends android.widget.ResourceCursorAdapter
JotyCursorWrapper
object.
Furthermore it hosts, in the m_maxRecordQty
member, the page size of the pagination prescribed
by the Joty application, that is initialized in the JotyResultFragment. In order to make the adapter to
conform with the pagination, the class overrides the getCount()
method.
JotyCursorWrapper
,
JotyResultFragment
Modifier and Type | Field and Description |
---|---|
JotyCursorWrapper |
m_cursor |
int |
m_maxRecordQty |
Constructor and Description |
---|
JotyResourceCursorAdapter(android.content.Context context,
int layout,
JotyCursorWrapper cursorWrapper,
int flags) |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
int |
getInt(java.lang.String fieldName) |
long |
getLong(java.lang.String fieldName) |
java.lang.String |
getString(java.lang.String fieldName) |
boolean |
isNull(java.lang.String fieldName) |
newDropDownView, newView, setDropDownViewResource, setDropDownViewTheme, setViewResource
bindView, changeCursor, convertToString, getCursor, getDropDownView, getDropDownViewTheme, getFilter, getFilterQueryProvider, getItem, getItemId, getView, hasStableIds, init, onContentChanged, runQueryOnBackgroundThread, setFilterQueryProvider, swapCursor
areAllItemsEnabled, getItemViewType, getViewTypeCount, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
public int m_maxRecordQty
public JotyCursorWrapper m_cursor
public JotyResourceCursorAdapter(android.content.Context context, int layout, JotyCursorWrapper cursorWrapper, int flags)
public int getCount()
getCount
in interface android.widget.Adapter
getCount
in class android.widget.CursorAdapter
public long getLong(java.lang.String fieldName)
public int getInt(java.lang.String fieldName)
public boolean isNull(java.lang.String fieldName)
public java.lang.String getString(java.lang.String fieldName)