Class Observer
Object
|
+--OObject
|
+--Observer
-
Direct Known Subclasses:
-
Model
- class
Observer
- extends OObject
This class acts as the abstract base class for each
"observer class" (ala Observer design pattern).
Subclasses of Observer should define/override:
(1) the update() method which accepts update events
and takes one parameter which is the "observable"
plus one optional adhoc parameter.
Author: Bruce Wallace (PolyGlotInc.com)
Defined in mvc.js
Version: 1.0
|
Method Summary |
void
|
konstructor()
|
void
|
subscribe( <Observable> observable )
subscribe to (aka watch/monitor/observe) the given observable
|
void
|
update( <Observable> observable, <Object> optAdhocObj )
override this method with your logic to respond to an update
event from one of the Observables you are subscribed to.
|
Observer
Observer()
Author: Bruce Wallace (PolyGlotInc.com)
Version: 1.0
konstructor
void konstructor()
subscribe
void subscribe( <Observable> observable )
subscribe to (aka watch/monitor/observe) the given observable
Parameters:
observable - object to monitor
update
void update( <Observable> observable, <Object> optAdhocObj )
override this method with your logic to respond to an update
event from one of the Observables you are subscribed to.
Parameters:
observable - the generator of this update event
optAdhocObj - optional adhoc object passed by sender
Documentation generated by
JSDoc on Fri Mar 17 06:40:21 2006