Observable.notifyObservers
Class Overview | Class Members |
This Package |
All Packages
public void notifyObservers()
Description
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.
See Also
clearChanged, hasChanged, update
public void notifyObservers( Object arg )
Parameters
- arg
- any object.
Description
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.
See Also
clearChanged, hasChanged, update