Search in sources :

Example 1 with SimpleDatabaseObjectCursorAdapter

use of com.dailystudio.app.widget.SimpleDatabaseObjectCursorAdapter in project devbricks by dailystudio.

the class AbsCursorAdapterFragment method dumpObject.

public DatabaseObject dumpObject(Cursor cursor) {
    if (cursor == null) {
        return null;
    }
    ListAdapter adapter = getAdapter();
    if (adapter instanceof SimpleDatabaseObjectCursorAdapter == false) {
        return null;
    }
    final SimpleDatabaseObjectCursorAdapter<?> dbObjectAdapter = (SimpleDatabaseObjectCursorAdapter<?>) adapter;
    return dbObjectAdapter.dumpItem(cursor);
}
Also used : SimpleDatabaseObjectCursorAdapter(com.dailystudio.app.widget.SimpleDatabaseObjectCursorAdapter) ListAdapter(android.widget.ListAdapter)

Example 2 with SimpleDatabaseObjectCursorAdapter

use of com.dailystudio.app.widget.SimpleDatabaseObjectCursorAdapter in project devbricks by dailystudio.

the class AbsCursorAdapterFragment method dumpObject.

public DatabaseObject dumpObject(int position) {
    ListAdapter adapter = getAdapter();
    if (adapter instanceof SimpleDatabaseObjectCursorAdapter == false) {
        return null;
    }
    final SimpleDatabaseObjectCursorAdapter<?> dbObjectAdapter = (SimpleDatabaseObjectCursorAdapter<?>) adapter;
    return dbObjectAdapter.dumpItem(position);
}
Also used : SimpleDatabaseObjectCursorAdapter(com.dailystudio.app.widget.SimpleDatabaseObjectCursorAdapter) ListAdapter(android.widget.ListAdapter)

Aggregations

ListAdapter (android.widget.ListAdapter)2 SimpleDatabaseObjectCursorAdapter (com.dailystudio.app.widget.SimpleDatabaseObjectCursorAdapter)2