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 MVCROAttributeModel

    Object
       |
       +--GrvObject
             |
             +--MVCObserver
                   |
                   +--MVCModel
                         |
                         +--MVCScalarModel
                               |
                               +--MVCAttributeModel
                                     |
                                     +--MVCROAttributeModel

class MVCROAttributeModel
extends MVCAttributeModel

This class encapsulates a "wrapper" data model for a specified attribute of a specified base object. The specified attribute can in fact be a method name and it will be called as needed. This model is READ-ONLY.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in grvMVC.js

Constructor Summary
`MVCROAttributeModel ()`

Method Summary
`void` | `_setValidity()` set the validity attribute of this attribute but dont publish
`void` | `_setValue()` set the value of base object attribute but dont publish
`Object` | `getValue()` return current value of base object attribute (even if it is a method).
`Object` | `invoke(f,optParam)` invoke our attribute as a method call and return result
`void` | `konstructor( <Object> baseObject, <String> attribute, <String> optParam, <String> optName )`
`void` | `setValue()` set the value of base object attribute and publish

Methods inherited from class MVCAttributeModel
`getValidity, validate`

Methods inherited from class MVCModel
`dumpSubscribers, toString, dirty, clean, neverChanged, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, reloaded, addObserver, delObserver, notifyObservers`

Methods inherited from class MVCObserver
`update, subscribe`

Methods inherited from class GrvObject
`souper`

Constructor Detail

### MVCROAttributeModel

    MVCROAttributeModel()

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

- konstructor()

Method Detail

### _setValidity

    void _setValidity()

set the validity attribute of this attribute but dont publish

Parameters:

`errMsg` - the validity attribute (as an error message)

### _setValue

    void _setValue()

set the value of base object attribute but dont publish

### getValue

    Object getValue()

return current value of base object attribute (even if it is a method).

### invoke

    Object invoke(f,optParam)

invoke our attribute as a method call and return result

### konstructor

    void konstructor( <Object> baseObject, <String> attribute, <String> optParam, <String> optName )

Parameters:

`baseObject` - object whose property we are wrappering

`attribute` - name of baseObject's member we are wrappering

`optParam` - optional parameter to pass to attribute if it is a method

`optName` - optional name of this instance

### setValue

    void setValue()

set the value of base object attribute and publish

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