FileDocCategorySizeDatePackage
DataSetObservable.javaAPI DocAndroid 1.5 API1599Wed May 06 22:41:54 BST 2009android.database

DataSetObservable

public class DataSetObservable extends Observable
A specialization of Observable for DataSetObserver that provides methods for invoking the various callback methods of DataSetObserver.

Fields Summary
Constructors Summary
Methods Summary
public voidnotifyChanged()
Invokes onChanged on each observer. Called when the data set being observed has changed, and which when read contains the new state of the data.

        synchronized(mObservers) {
            for (DataSetObserver observer : mObservers) {
                observer.onChanged();
            }
        }
    
public voidnotifyInvalidated()
Invokes onInvalidated on each observer. Called when the data set being monitored has changed such that it is no longer valid.

        synchronized (mObservers) {
            for (DataSetObserver observer : mObservers) {
                observer.onInvalidated();
            }
        }