Class DataSetObservable

java.lang.Object
icyllis.modernui.util.Observable<DataSetObserver>
icyllis.modernui.util.DataSetObservable

public class DataSetObservable extends Observable<DataSetObserver>
A specialization of Observable for DataSetObserver that provides methods for sending notifications to a list of DataSetObserver objects.
  • Constructor Details

    • DataSetObservable

      public DataSetObservable()
  • Method Details

    • notifyChanged

      public void notifyChanged()
      Invokes 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.
    • notifyInvalidated

      public void notifyInvalidated()
      Invokes 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.