Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework and AIM RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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`

Constructor Detail

### MVCObserver

    MVCObserver()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)

Method Detail

### 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

Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework and AIM RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Sun Feb 11 13:31:42 2007