Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class MVCBoolEditController

    Object
       |
       +--GrvObject
             |
             +--MVCView
                   |
                   +--MVCController
                         |
                         +--MVCScalarEditController
                               |
                               +--MVCBoolEditController

class MVCBoolEditController
extends MVCScalarEditController

This class manages a scalar editor with a set of yes,no,unknown radio buttons attached to the specified Boolean (i.e. can be null) MVCBoolModel.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in grvMVC.js

Constructor Summary
`MVCBoolEditController ()`

Method Summary
`Object` | `btnID()`
`String` | `buildHTMLstr()` return an HTML string of the basic structure for this view.
`Object` | `getButtons()`
`Object` | `getCtrlValue()` return the current value of the controller widget
`void` | `konstructor( <MVCBoolModel> xModel, <String> className, <String> optName, <String> optEvtHndlrName )`
`boolean` | `mustRebuild()` return true IFF model(s) require the HTML rebuilt for THIS view default implementation: If there is a difference in the current "build context" and the current one then rebuild else not.
`void` | `paintHTML()` update/modify attributes of basic existing HTML for THIS view
`Object` | `radBtnHTMLstr( name, evtHndlr, code, desc, optChecked )`
`void` | `setCtrlValue(x)` set our controller widget to the given value

Methods inherited from class MVCScalarEditController
`postEdit, getEvtHandlerStr, setDisplay, getModelValue, setModelValue, updateView, forceValue, setModels`

Methods inherited from class MVCView
`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, souper_, isInstanceOf`

Constructor Detail

### MVCBoolEditController

    MVCBoolEditController()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Method Detail

### btnID

    Object btnID()

### buildHTMLstr

    String buildHTMLstr()

return an HTML string of the basic structure for this view. As a side effect, build/update subview list for this view. As a side effect, invoke this method on each nested subview.

Returns:

HTML (suitable for assigning to innerHTML)

### getButtons

    Object getButtons()

### getCtrlValue

    Object getCtrlValue()

return the current value of the controller widget

### konstructor

    void konstructor( <MVCBoolModel> xModel, <String> className, <String> optName, <String> optEvtHndlrName )

Parameters:

`xModel` - scalar data model to edit

`className` - the CSS classname to use for formatting

`optName` - optional name of this instance

`optEvtHndlrName` - optional name of event handler function

### mustRebuild

    boolean mustRebuild()

return true IFF model(s) require the HTML rebuilt for THIS view default implementation: If there is a difference in the current "build context" and the current one then rebuild else not.

### paintHTML

    void paintHTML()

update/modify attributes of basic existing HTML for THIS view

### radBtnHTMLstr

    Object radBtnHTMLstr( name, evtHndlr, code, desc, optChecked )

### setCtrlValue

    void setCtrlValue(x)

set our controller widget to the given value

Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Sun Feb 11 13:28:59 2007