1 package jp
.gr
.java_conf
.ofnhwx
.olib
.base
;
3 import android
.content
.Context
;
4 import android
.database
.Cursor
;
5 import android
.support
.v4
.widget
.SimpleCursorAdapter
;
6 import android
.support
.v4
.widget
.SimpleCursorAdapter
.ViewBinder
;
9 * {@link SimpleCursorAdapter}のもと.
11 * <tr><td>・コンストラクタで{@link #setViewBinder(ViewBinder)}の実行</td></tr>
12 * <tr><td>・{@link #swapCursor(Cursor)}で{@link #onSetColumns(Cursor)}を呼出し</td></tr>
16 public abstract class BaseCursorAdapter
extends SimpleCursorAdapter
implements ViewBinder
{
19 * {@link #swapCursor(Cursor)}から呼出し.項目の列取得などが可能.
22 protected abstract void onSetColumns(Cursor c
);
24 public BaseCursorAdapter(Context context
, int layout
, String
[] from
, int[] to
, int flags
) {
25 super(context
, layout
, null, from
, to
, flags
);
30 public Cursor
swapCursor(Cursor c
) {
32 return super.swapCursor(c
);
34 Cursor result
= super.swapCursor(c
);