Class MVCAttributeModel
Object
|
+--GrvObject
|
+--MVCObserver
|
+--MVCModel
|
+--MVCScalarModel
|
+--MVCAttributeModel
-
Direct Known Subclasses:
-
MVCROAttributeModel
- class
MVCAttributeModel
- extends MVCScalarModel
This class encapsulates a "wrapper" data model for a
specified attribute of a specified base object.
The specified attribute can NOT be a method call.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:
Defined in grvMVC.js
|
Field Summary |
<static> Object |
kValidateSuffix
The suffix added to the basic name to get the validate function name. |
|
Method Summary |
void
|
_setValidity( <String> errMsg )
set the validity attribute of this attribute but dont publish
|
void
|
_setValue(x)
set the value of base object attribute but dont publish
|
String
|
getValidity()
return the validity attribute of this attribute
|
Object
|
getValue( )
return the value of base object attribute
|
void
|
konstructor( <Object> baseObject, <String> attribute, <String> optName )
|
void
|
setValue(x)
set the value of base object attribute and publish
|
Object
|
validate()
return error message from custom validation method or null for no error
|
| Methods inherited from class MVCModel |
dumpSubscribers, toString, dirty, clean, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
|
kValidateSuffix
<static> Object kValidateSuffix
The suffix added to the basic name to get the validate function name.
MVCAttributeModel
MVCAttributeModel()
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:
_setValidity
void _setValidity( <String> errMsg )
set the validity attribute of this attribute but dont publish
Parameters:
errMsg - the validity attribute (as an error message)
_setValue
void _setValue(x)
set the value of base object attribute but dont publish
getValidity
String getValidity()
return the validity attribute of this attribute
getValue
Object getValue( )
return the value of base object attribute
konstructor
void konstructor( <Object> baseObject, <String> attribute, <String> optName )
Parameters:
baseObject - object whose property we are wrappering
attribute - name of baseObject's member we are wrappering
optName - optional name of this instance
setValue
void setValue(x)
set the value of base object attribute and publish
validate
Object validate()
return error message from custom validation method or null for no error
Documentation generated by
JSDoc on Thu Jan 6 12:47:09 2011