becker.util
Interface IObserver


public interface IObserver

A class implementing IObserver is usually registered with a class implementing IObservable. Each time the IObservable object changes its state, the update method of each registered observer is called so that the observer can react to the change.

The intent of IObserver is similar to that of java.util.Observer. However, Observer requires that the update method be passed an object extending java.util.Observable -- something that can't be done if the observed object must extend another superclass.

Author:
Byron Weber Becker
See Also:
IObservable, Observers

Method Summary
 void update(Object theObserved, Object changeInfo)
          Update the this observer after an IObservable it is registered with has changed.
 

Method Detail

update

void update(Object theObserved,
            Object changeInfo)
Update the this observer after an IObservable it is registered with has changed.

Parameters:
theObserved - The object that changed.
changeInfo - Optional information about what it was that changed. May be null.