The Gravey 2.5 Framework

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:

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, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
   
Methods inherited from class MVCObserver
update, subscribe
   
Methods inherited from class GrvObject
souper, souper_, isInstanceOf
 

Constructor Detail

MVCROAttributeModel

MVCROAttributeModel()

Method Detail

_setValidity

void _setValidity()

_setValue

void _setValue()

getValue

Object getValue()

invoke

Object invoke(f,optParam)

konstructor

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

setValue

void setValue()

The Gravey 2.5 Framework

Documentation generated by JSDoc on Thu Jan 6 12:47:09 2011