The Gravy Framework

Class ROAttributeModel

Object
   |
   +--OObject
         |
         +--Observer
               |
               +--Model
                     |
                     +--ScalarModel
                           |
                           +--AttributeModel
                                 |
                                 +--ROAttributeModel

class ROAttributeModel
extends AttributeModel


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.
See:

Author: Bruce Wallace (PolyGlotInc.com)
Defined in mvc.js

Version: 1.0


Constructor Summary
ROAttributeModel ()
           
 
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 AttributeModel
getValidity
   
Methods inherited from class Model
dumpSubscribers, toString, dirty, clean, neverChanged, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
   
Methods inherited from class Observer
update, subscribe
 

Constructor Detail

ROAttributeModel

ROAttributeModel()

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 Gravy Framework

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