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

## Class MVCDualController

    Object
       |
       +--GrvObject
             |
             +--MVCView
                   |
                   +--MVCController
                         |
                         +--MVCDualController

Direct Known Subclasses:
  MVCDualChkBoxController, MVCDualStringController, MVCDualBoolController, MVCDualDollarController, MVCDualMenuController, MVCDualTextController, MVCDualDateController

class MVCDualController
extends MVCController

This abstract class manages dual views (viewer and editor) of a MVCScalarModel.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in grvMVC.js

Constructor Summary
`MVCDualController ()`

Method Summary
`String` | `buildHTMLstr()` return an HTML string of the basic structure for this view.
`void` | `enableEdit( enable )`
`Object` | `formatted( value )`
`void` | `konstructor( <MVCScalarModel> sModel, <String> className, <String> optName )`
`void` | `paintHTML()` update/modify attributes of basic existing HTML for THIS view
`void` | `setEditMode( mode, inEdit )`
`void` | `setModels( value )`
`String` | `updateValidity()` update Validity attributes
`String` | `validator()` validate data and return null if valid else error msg

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

### MVCDualController

    MVCDualController()

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

- konstructor()

Method Detail

### 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)

### enableEdit

    void enableEdit( enable )

### formatted

    Object formatted( value )

### konstructor

    void konstructor( <MVCScalarModel> sModel, <String> className, <String> optName )

Parameters:

`sModel` - scalar data model to view/edit

`className` - the CSS classname to use for formatting

`optName` - optional name of this instance

### paintHTML

    void paintHTML()

update/modify attributes of basic existing HTML for THIS view

### setEditMode

    void setEditMode( mode, inEdit )

### setModels

    void setModels( value )

### updateValidity

    String updateValidity()

update Validity attributes

Returns:

errmsg

### validator

    String validator()

validate data and return null if valid else error msg

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

Documentation generated by JSDoc on Sun Feb 11 13:31:42 2007