|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void update(Object theObserved, Object changeInfo)
IObservable
it is
registered with has changed.
theObserved
- The object that changed.changeInfo
- Optional information about what it was that changed.
May be null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |