This class represents an observable object, or "data"
in the model-view paradigm. It can be subclassed to represent an
object that the application wants to have observed.
An observable object can have one or more observers. After an
observable instance changes, an application calling the
Observable's notifyObservers method
causes all of its observers to be notified of the change by a call
to their update method.
If this object has changed, as indicated by the
hasChanged method, then notify all of its observers
and then call the clearChanged method to
indicate that this object has no longer changed.
If this object has changed, as indicated by the
hasChanged method, then notify all of its observers
and then call the clearChanged method to indicate
that this object has no longer changed.
If this object has changed, as indicated by the
hasChanged method, then notify all of its observers
and then call the clearChanged method to
indicate that this object has no longer changed.
Each observer has its update method called with two
arguments: this observable object and null.
If this object has changed, as indicated by the
hasChanged method, then notify all of its observers
and then call the clearChanged method to indicate
that this object has no longer changed.
Each observer has its update method called with two
arguments: this observable object and the arg argument.
Indicates that this object has no longer changed, or that it has
already notified all of its observers of its most recent change.
This method is called automatically by the
notifyObservers methods.