Package icyllis.modernui.util
Class DataSetObservable
A specialization of
Observable for DataSetObserver
that provides methods for sending notifications to a list of
DataSetObserver objects.-
Field Summary
Fields inherited from class icyllis.modernui.util.Observable
mObservers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokesDataSetObserver.onChanged()on each observer.voidInvokesDataSetObserver.onInvalidated()on each observer.Methods inherited from class icyllis.modernui.util.Observable
registerObserver, unregisterAll, unregisterObserver
-
Constructor Details
-
DataSetObservable
public DataSetObservable()
-
-
Method Details
-
notifyChanged
public void notifyChanged()InvokesDataSetObserver.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. -
notifyInvalidated
public void notifyInvalidated()InvokesDataSetObserver.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.
-