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

## Class MVCScalarEditController

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

Direct Known Subclasses:
  MVCFieldEditController, MVCChkBoxEditController, MVCPopupMenuController, MVCTextEditController, MVCBoolEditController, MVCDateEditController

class MVCScalarEditController
extends MVCController

This abstract class manages an editor of the specified MVCScalarModel. This controller edits a single scalar value.
Version: 2.5
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in grvMVC.js

Constructor Summary
`MVCScalarEditController ()`

Method Summary
`void` | `forceValue(x)` force this controller to the given value
`Object` | `getCtrlValue( )` return the current value of the controller widget
`String` | `getEvtHandlerStr()` return a string with full invocation of our event handler
`Object` | `getModelValue( )` return the current value of our data model
`void` | `konstructor( <MVCScalarModel> sModel, <String> optName, <String> optEvtHndlrName, <Function> optPostEdit )`
`void` | `paintHTML( )` update/modify attributes of basic existing HTML for THIS view
`Object` | `postEdit()` return the current (post-edit) value of the controller widget
`void` | `setCtrlValue(x)` set our controller widget to the given value
`void` | `setDisplay(x)` set our display to the given value
`void` | `setModels(x)` set our (and our parents if we are embedded within a MVCDualController) data model to the given value
`void` | `setModelValue(x)` set our data model to the given value
`void` | `updateView( )` update our display to the current value of our data model

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

Constructor Detail

### MVCScalarEditController

    MVCScalarEditController()

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

- konstructor()

Method Detail

### forceValue

    void forceValue(x)

force this controller to the given value

### getCtrlValue

    Object getCtrlValue( )

return the current value of the controller widget

### getEvtHandlerStr

    String getEvtHandlerStr()

return a string with full invocation of our event handler

### getModelValue

    Object getModelValue( )

return the current value of our data model

### konstructor

    void konstructor( <MVCScalarModel> sModel, <String> optName, <String> optEvtHndlrName, <Function> optPostEdit )

Parameters:

`sModel` - scalar data model to edit

`optName` - optional name of this instance

`optEvtHndlrName` - optional name of event handler function

`optPostEdit` - optional post edit value cleanup function

### paintHTML

    void paintHTML( )

update/modify attributes of basic existing HTML for THIS view

### postEdit

    Object postEdit()

return the current (post-edit) value of the controller widget

### setCtrlValue

    void setCtrlValue(x)

set our controller widget to the given value

### setDisplay

    void setDisplay(x)

set our display to the given value

### setModels

    void setModels(x)

set our (and our parents if we are embedded within a MVCDualController) data model to the given value

### setModelValue

    void setModelValue(x)

set our data model to the given value

### updateView

    void updateView( )

update our display to the current value of our data model

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

Documentation generated by JSDoc on Thu Jan 6 12:47:09 2011