public class DataSetObservable extends Observable<DataSetObserver>
Observable
for DataSetObserver
that provides methods for sending notifications to a list of
DataSetObserver
objects.mObservers
Constructor and Description |
---|
DataSetObservable() |
Modifier and Type | Method and Description |
---|---|
void |
notifyChanged()
Invokes
DataSetObserver.onChanged() on each observer. |
void |
notifyInvalidated()
Invokes
DataSetObserver.onInvalidated() on each observer. |
registerObserver, unregisterAll, unregisterObserver
public void notifyChanged()
DataSetObserver.onChanged()
on each observer.
Called when the contents of the data set have changed. The recipient
will obtain the new contents the next time it queries the data set.public void notifyInvalidated()
DataSetObserver.onInvalidated()
on each observer.
Called when the data set is no longer valid and cannot be queried again,
such as when the data set has been closed.