Added in API level 1

DataSetObserver


public abstract class DataSetObserver
extends Object

java.lang.Object
   ↳ android.database.DataSetObserver
AlphabetIndexer A helper class for adapters that implement the SectionIndexer interface. 


Receives call backs when a data set has been changed, or made invalid. The typically data sets that are observed are Cursors or Adapters. DataSetObserver must be implemented by objects which are added to a DataSetObservable.

Summary

Public constructors

DataSetObserver()

Public methods

void onChanged()

This method is called when the entire data set has changed, most likely through a call to Cursor.requery() on a Cursor.

void onInvalidated()

This method is called when the entire data becomes invalid, most likely through a call to Cursor.deactivate() or Cursor.close() on a Cursor.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

DataSetObserver

public DataSetObserver ()

Public methods

onChanged

Added in API level 1
public void onChanged ()

This method is called when the entire data set has changed, most likely through a call to Cursor.requery() on a Cursor.

onInvalidated

Added in API level 1
public void onInvalidated ()

This method is called when the entire data becomes invalid, most likely through a call to Cursor.deactivate() or Cursor.close() on a Cursor.