public class AlphabetIndexer extends DataSetObserver implements SectionIndexer
| Modifier and Type | Field and Description |
|---|---|
protected CharSequence |
mAlphabet |
protected int |
mColumnIndex |
protected Cursor |
mDataCursor |
| Constructor and Description |
|---|
AlphabetIndexer(Cursor cursor,
int sortedColumnIndex,
CharSequence alphabet) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
compare(String word,
String letter) |
int |
getPositionForSection(int sectionIndex) |
int |
getSectionForPosition(int position) |
Object[] |
getSections() |
void |
onChanged() |
void |
onInvalidated() |
void |
setCursor(Cursor cursor) |
protected Cursor mDataCursor
protected int mColumnIndex
protected CharSequence mAlphabet
public AlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet)
public Object[] getSections()
getSections in interface SectionIndexerpublic void setCursor(Cursor cursor)
public int getPositionForSection(int sectionIndex)
getPositionForSection in interface SectionIndexerpublic int getSectionForPosition(int position)
getSectionForPosition in interface SectionIndexerpublic void onChanged()
onChanged in class DataSetObserverpublic void onInvalidated()
onInvalidated in class DataSetObserverCopyright © 2008-2013. All Rights Reserved.