Android
android.database
public class

android.database.ContentObservable

java.lang.Object
android.database.Observable<T>
android.database.ContentObservable

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

Summary

Fields inherited from class android.database.Observable

Public Constructors

            ContentObservable()

Public Methods

          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
Methods inherited from class java.lang.Object

Details

Public Constructors

public ContentObservable()

Public Methods

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

public void notifyChange(boolean selfChange)

invokes onChange on each observer

public void registerObserver(ContentObserver observer)

Adds an observer to the list. The observer cannot be null and it must not already be registered.

Parameters

observer the observer to register
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56