The Gravy Framework

Class ScalarModel

Object
   |
   +--OObject
         |
         +--Observer
               |
               +--Model
                     |
                     +--ScalarModel
Direct Known Subclasses:
AttributeModel, SelectionModel, BoolModel

class ScalarModel
extends Model


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.
Author: Bruce Wallace (PolyGlotInc.com)
Defined in mvc.js

Version: 1.0


Constructor Summary
ScalarModel ()
           
 
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 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

ScalarModel

ScalarModel()

Method Detail

_setValidity

void _setValidity( <String> errMsg )

_setValue

void _setValue(x)

getValidity

String getValidity()

getValue

Object getValue( )

konstructor

void konstructor( <String> optPropName, <String> optName )

setValue

Object setValue(x)

The Gravy Framework

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