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
|
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 MVCModel |
dumpSubscribers, toString, dirty, clean, neverChanged, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, reloaded, addObserver, delObserver, notifyObservers
|
MVCROAttributeModel
MVCROAttributeModel()
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:
_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
Documentation generated by
JSDoc on Sun Feb 11 13:31:25 2007