java.util
Interface Observer


public interface Observer

When implemented, this interface allows all classes to be observable by instances of class Observer.


Method Summary
 void update(Observable o, Object arg)
          Called when observers in the observable list need to be updated.
 

Method Detail

update

public void update(Observable o,
                   Object arg)
Called when observers in the observable list need to be updated.

Parameters:
o - the list of observers
arg - the argument being notified