public interface java.util
Observer


Show All Login
Java SE 6
  
Details
A class can implement the Observer interface when it wants to be informed of changes in observable objects.
version1.20, 11/17/05
sinceJDK1.0
See also java.util.Observable

Methods
public void update(Observable o, Object arg) Details
This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change.
othe observable object.
argan argument passed to the notifyObservers method.