The Gravey 2.0 Framework

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


Constructor Summary
MVCObserver ()
           
 
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.
 
Methods inherited from class GrvObject
souper, souper_, isInstanceOf
 

Constructor Detail

MVCObserver

MVCObserver()

Method Detail

konstructor

void konstructor()

subscribe

void subscribe( <MVCObservable> observable )

update

void update( <MVCObservable> observable, <Object> optAdhocObj )

The Gravey 2.0 Framework

Documentation generated by JSDoc on Sat Dec 8 21:51:44 2007