|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.database.ContentObserver
android.provider.Gmail.MailCursor
public static class Gmail.MailCursor
This is a cursor that only defines methods to move throught the results and register to hear about changes. All access to the data is left to subinterfaces.
| Field Summary | |
|---|---|
protected String |
mAccount
|
protected Cursor |
mCursor
|
| Constructor Summary | |
|---|---|
protected |
Gmail.MailCursor(String account,
Cursor cursor)
Constructs the MailCursor given a regular cursor, registering as a change observer of the cursor. |
| Method Summary | |
|---|---|
protected void |
checkCursor()
|
protected void |
checkThread()
|
int |
count()
Returns the numbers of rows in the cursor. |
boolean |
deliverSelfNotifications()
Returns true if this observer is interested in notifications for changes made through the cursor the observer is registered with. |
String |
getAccount()
Gets the account associated with this cursor. |
Cursor |
getCursor()
|
protected String |
getStringInColumn(int columnIndex)
Returns the string value of the column, or "" if the value is null. |
protected ContentValues |
getUpdateValues()
Lazily constructs a map of update values to apply to the database if requested. |
boolean |
moveTo(int position)
Move the cursor to an absolute position. |
boolean |
next()
Move the cursor to the next row. |
void |
onChange(boolean selfChange)
This method is called when a change occurs to the cursor that is being observed. |
protected void |
onCursorPositionChanged()
Called whenever mCursor is changed to point to a different row. |
int |
position()
|
void |
registerContentObserver(ContentObserver observer)
|
void |
registerDataSetObserver(DataSetObserver observer)
|
void |
registerObserver(Gmail.MailCursorObserver observer)
Register an observer to hear about changes to the cursor. |
void |
release()
Release all resources and locks associated with the cursor. |
void |
unregisterContentObserver(ContentObserver observer)
|
void |
unregisterDataSetObserver(DataSetObserver observer)
|
void |
unregisterObserver(Gmail.MailCursorObserver observer)
Unregister an observer. |
| Methods inherited from class android.database.ContentObserver |
|---|
dispatchChange, getContentObserver, releaseContentObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Cursor mCursor
protected String mAccount
| Constructor Detail |
|---|
protected Gmail.MailCursor(String account,
Cursor cursor)
account - the account the cursor is associated withcursor - the underlying cursor| Method Detail |
|---|
public Cursor getCursor()
public String getAccount()
protected void checkThread()
protected ContentValues getUpdateValues()
protected void onCursorPositionChanged()
public final int count()
public final int position()
public final boolean moveTo(int position)
This method will return true if the request destination was reachable, otherwise it returns false.
position - the zero-based position to move to.
public final boolean next()
This method will return false if the cursor is already past the last entry in the result set.
public final void release()
public final void registerContentObserver(ContentObserver observer)
public final void unregisterContentObserver(ContentObserver observer)
public final void registerDataSetObserver(DataSetObserver observer)
public final void unregisterDataSetObserver(DataSetObserver observer)
public final void registerObserver(Gmail.MailCursorObserver observer)
observer - the observer to registerpublic final void unregisterObserver(Gmail.MailCursorObserver observer)
observer - the observer to unregisterpublic final boolean deliverSelfNotifications()
ContentObserver
deliverSelfNotifications in class ContentObserverpublic void onChange(boolean selfChange)
ContentObserver
onChange in class ContentObserverselfChange - true if the update was caused by a call to commit on the
cursor that is being observed.protected void checkCursor()
protected String getStringInColumn(int columnIndex)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||