ObserverNameObserverSynopsis
DescriptionThe Observer interface is used to implement the view portion of the model-view paradigm. The idea is that an Observable object, the model, represents some data that is being manipulated through a user interface, while Observer objects provide the user with a view of the data. When the Observable object is modified, it tells the Observer objects that the model has been modified by calling notifyObservers(). An Observer object registers with an Observable object to receive notifications when the Observable is modified. The Observer object is then notified of changes via the update() method. Interface Summary
public abstract interface java.util.Observer { // Methods public abstract void update(Observable o, Object arg); } Methodsupdatevoid update(Observable o, Object arg)
See AlsoObservable |
|