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

## Class MVCPopupMenuController

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

Direct Known Subclasses:
  AccountSelectController

class MVCPopupMenuController
extends MVCScalarEditController

This class manages a popup menu which watches a MVCListModel (specifying the menu items) embedded within a MVCSelectionModel that reflects which item is/should-be currently selected. [The scalar value we "edit" is the "select index" of the MVCSelectionModel.] Each item in the list should implement the MVCMenuItem interface.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in grvMVC.js

Constructor Summary
`MVCPopupMenuController ()`

Method Summary
`String` | `buildHTMLstr()` return an HTML string of the basic structure for this view.
`MVCContext` | `currentContext()` return the current "context" of this view.
`void` | `konstructor( <MVCSelectionModel> sModel, <String> optName, <String> optEvtHndlrName, <String> optClassName )`

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

Methods inherited from class MVCView
`mustRebuild, mustRepaint, 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

### MVCPopupMenuController

    MVCPopupMenuController()

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)

### currentContext

    MVCContext currentContext()

return the current "context" of this view. Default is "no rebuild ever needed" (unless others force us to)

### konstructor

    void konstructor( <MVCSelectionModel> sModel, <String> optName, <String> optEvtHndlrName, <String> optClassName )

Parameters:

`sModel` - selection data model to control

`optName` - optional name of this instance

`optEvtHndlrName` - optional name of event handler function

`optClassName` - optional CSS classname to use for formatting

Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS 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:25 2007