Class MVCScalarModel
Object
|
+--GrvObject
|
+--MVCObserver
|
+--MVCModel
|
+--MVCScalarModel
-
Direct Known Subclasses:
-
MVCAttributeModel, MVCSelectionModel, MVCBoolModel
- class
MVCScalarModel
- extends MVCModel
This class encapsulates a Scalar data model with a
default implementation of the scalar being implemented via
a (bean-like) property. The property name can optionally
be specified.
Scalar models assume that a validity attribute of the
basic model value can also be set and it's member name
is based on the name of the basic value's member name.
By convention, the validity attribute consists of an error
message string if invalid or null if valid.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js
|
Field Summary |
<static> Object |
kValiditySuffix
The suffix added to the basic name to get the validity attribute name. |
|
Method Summary |
void
|
_setValidity( <String> errMsg )
set the validity attribute of this scalar value and dont publish
|
void
|
_setValue(x)
set scalar to given value but dont publish
|
String
|
getValidity()
return the validity attribute of this scalar value
|
Object
|
getValue( )
get scalar value
|
void
|
konstructor( <String> optPropName, <String> optName )
|
Object
|
setValue(x)
set scalar to given value and publish
|
| Methods inherited from class MVCModel |
dumpSubscribers, toString, dirty, clean, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
|
kValiditySuffix
<static> Object kValiditySuffix
The suffix added to the basic name to get the validity attribute name.
MVCScalarModel
MVCScalarModel()
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
_setValidity
void _setValidity( <String> errMsg )
set the validity attribute of this scalar value and dont publish
Parameters:
errMsg - the validity attribute (as an error message)
_setValue
void _setValue(x)
set scalar to given value but dont publish
getValidity
String getValidity()
return the validity attribute of this scalar value
getValue
Object getValue( )
konstructor
void konstructor( <String> optPropName, <String> optName )
Parameters:
optPropName - optional property name to use instead of default
optName - optional name of this instance
setValue
Object setValue(x)
set scalar to given value and publish
Documentation generated by
JSDoc on Thu Jan 6 12:46:39 2011