Build 1.0_r1(from source)

android.database
Class ContentObservable

java.lang.Object
  extended by android.database.Observable<ContentObserver>
      extended by android.database.ContentObservable

public class ContentObservable
extends Observable<ContentObserver>

A specialization of Observable for ContentObserver that provides methods for invoking the various callback methods of ContentObserver.


Field Summary
 
Fields inherited from class android.database.Observable
mObservers
 
Constructor Summary
ContentObservable()
           
 
Method Summary
 void dispatchChange(boolean selfChange)
          invokes dispatchUpdate on each observer, unless the observer doesn't want self-notifications and the update is from a self-notification
 void notifyChange(boolean selfChange)
          invokes onChange on each observer
 void registerObserver(ContentObserver observer)
          Adds an observer to the list.
 
Methods inherited from class android.database.Observable
unregisterAll, unregisterObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentObservable

public ContentObservable()
Method Detail

registerObserver

public void registerObserver(ContentObserver observer)
Description copied from class: Observable
Adds an observer to the list. The observer cannot be null and it must not already be registered.

Overrides:
registerObserver in class Observable<ContentObserver>
Parameters:
observer - the observer to register

dispatchChange

public void dispatchChange(boolean selfChange)
invokes dispatchUpdate on each observer, unless the observer doesn't want self-notifications and the update is from a self-notification

Parameters:
selfChange -

notifyChange

public void notifyChange(boolean selfChange)
invokes onChange on each observer

Parameters:
selfChange -

Build 1.0_r1(from source)

Please submit a feedback, bug or feature