Lines Matching defs:cursor
28 * invalidates the cache if changes occur in the cursor.
30 * Your adapter is responsible for updating the cursor by calling {@link #setCursor} if the
31 * cursor changes. {@link #getPositionForSection} method does the binary search for the starting
42 * The index of the cursor column that this list is sorted on.
58 * the dataset changes or the cursor changes.
74 * @param cursor the cursor containing the data set
75 * @param sortedColumnIndex the column number in the cursor that is sorted
82 public AlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) {
83 mDataCursor = cursor;
92 if (cursor != null) {
93 cursor.registerDataSetObserver(this);
109 * Sets a new cursor as the data set and resets the cache of indices.
110 * @param cursor the new cursor to use as the data set
112 public void setCursor(Cursor cursor) {
116 mDataCursor = cursor;
117 if (cursor != null) {
148 final Cursor cursor = mDataCursor;
150 if (cursor == null || mAlphabet == null) {
162 int savedCursorPos = cursor.getPosition();
164 int count = cursor.getCount();
202 cursor.moveToPosition(pos);
203 String curName = cursor.getString(mColumnIndex);
247 cursor.moveToPosition(savedCursorPos);