The Gravey Framework and RATS RIA

Class MVCScalarView

Object
   |
   +--GrvObject
         |
         +--MVCView
               |
               +--MVCScalarView
Direct Known Subclasses:
MVCPadScalarView

class MVCScalarView
extends MVCView


This class produces a view of the specified MVCScalarModel. It accepts an optional formatter function specification that will transform the raw value of the model into a desired format. This formatter function should accept one parameter (the value) and return a formatted string version of that value.
Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:

Defined in grvMVC.js


Constructor Summary
MVCScalarView ()
           
 
Method Summary
 String buildHTMLstr( )
           return an HTML string of the basic structure for this view.
 String formatted(x)
           return the formatted version of the given value using our formatter function (where the raw value is returned if no formatter is registered)
 String getValueStr( )
           return the current value of our model formatted with our formatter
 void konstructor( <MVCScalarModel> xModel, <Function> optFormatFunction, <String> optName )
          
 void paintHTML( )
           update/modify attributes of basic existing HTML for THIS view
 void setDisplay(x)
           set the value of our display "widget"
 void updateView( )
           update the display with the current model value
 
Methods inherited from class MVCView
mustRebuild, mustRepaint, currentContext, watchModel, setViewID, innerID, getWidgetID, getWidget, getHook, buildHTML, updateContext, contextChanged, disable, enable, setVisible, setSubViewsVisible, isVisible, redraw, draw, rebuildAny, build, buildsubviews, paint, setParentView, clearSubViews, addSubView, getSubView, delSubView, embedView, embedHTML, embedAttr, block, unblock
   
Methods inherited from class GrvObject
souper
 

Constructor Detail

MVCScalarView

MVCScalarView()

Method Detail

buildHTMLstr

String buildHTMLstr( )

formatted

String formatted(x)

getValueStr

String getValueStr( )

konstructor

void konstructor( <MVCScalarModel> xModel, <Function> optFormatFunction, <String> optName )

paintHTML

void paintHTML( )

setDisplay

void setDisplay(x)

updateView

void updateView( )

The Gravey Framework and RATS RIA

Documentation generated by JSDoc on Thu Jan 6 12:46:18 2011