The Gravy Framework

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


Constructor Summary
Observer ()
           
 
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.

Constructor Detail

Observer

Observer()

Method Detail

konstructor

void konstructor()

subscribe

void subscribe( <Observable> observable )

update

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

The Gravy Framework

Documentation generated by JSDoc on Fri Mar 17 06:40:21 2006