Package icyllis.modernui.util

# 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.

- ## Field Summary

  ### Fields inherited from class icyllis.modernui.util.Observable

  `mObservers`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DataSetObservable()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `notifyChanged()`
  Invokes `DataSetObserver.onChanged()` on each observer.
  `void`
  `notifyInvalidated()`
  Invokes `DataSetObserver.onInvalidated()` on each observer.

  ### Methods inherited from class icyllis.modernui.util.Observable

  `registerObserver, unregisterAll, unregisterObserver`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.