java.util.Observable (JDK 1.0)
This class is the superclass of all "observable" objects to be used in an object-oriented model/view paradigm. The class methods allow you to add and delete Observer objects to and from an Observable's list, and to notify all of the Observer objects on the list. Observer objects are "notified" by invoking their update() method. Observable also maintains an internal "changed" flag, which may be set and cleared by the Observable, and which may be queried with hasChanged() by any interested observer.
public classObservableextends Object { //Public Constructor1.1publicObservable(); //Public Instance Methodspublic synchronized voidaddObserver(Observero); public synchronized intcountObservers(); public synchronized voiddeleteObserver(Observero); public synchronized voiddeleteObservers(); public synchronized booleanhasChanged(); public voidnotifyObservers(); public voidnotifyObservers(Objectarg); //Protected Instance Methodsprotected synchronized voidclearChanged(); protected synchronized voidsetChanged(); }
Passed To:
Observer.update()