Class MVCObserver
Object
|
+--GrvObject
|
+--MVCObserver
-
Direct Known Subclasses:
-
MVCModel
- class
MVCObserver
- extends GrvObject
This class acts as the abstract base class for each
"observer class" (ala Observer design pattern).
Subclasses of MVCObserver should define/override:
(1) the update() method which accepts update events
and takes one parameter which is the "observable"
plus one optional adhoc parameter.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js
|
Method Summary |
void
|
konstructor()
|
void
|
subscribe( <MVCObservable> observable )
subscribe to (aka watch/monitor/observe) the given observable
|
void
|
update( <MVCObservable> observable, <Object> optAdhocObj )
override this method with your logic to respond to an update
event from one of the Observables you are subscribed to.
|
MVCObserver
MVCObserver()
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
konstructor
void konstructor()
subscribe
void subscribe( <MVCObservable> observable )
subscribe to (aka watch/monitor/observe) the given observable
Parameters:
observable - object to monitor
update
void update( <MVCObservable> 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 Thu Jan 6 12:46:39 2011