This interface defines the update() method required for an object to "observe" subclasses of Observable. An Observer registers interest in an Observable() by calling the Observable.addObserver() method. Observer objects that have been registered in this way will have their update() method invoked by the Observable when that object has changed.
public abstract interface Observer { // Public Instance Methods public abstract void update(Observable o, Object arg); }
Observable.addObserver(), Observable.deleteObserver()
This HTML Help has been published using the chm2web software. |