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

## Class MVCListView

    Object
       |
       +--GrvObject
             |
             +--MVCView
                   |
                   +--MVCListView

Direct Known Subclasses:
  EDOListView

class MVCListView
extends MVCView

This class is a MVCView that expects to subscribe to a MVCListModel and will invoke itemHTMLstr() on each member of the list when buildHTMLstr() is called and itemPaint() on each member when paintHTML() is called.

     Subclasses of MVCListView should define/override:
     (A) itemHTMLstr() which creates HTML for specified item
     (B) itemPaint() which decorates HTML for specified item
     and optionally...
     (C) headHTMLstr() which creates HTML for a header item
     (D) headPaint() which decorates HTML for a header item

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js

Constructor Summary
`MVCListView ()`

Method Summary
`String` | `buildHTMLstr()` generate container/framework HTML
`String` | `headHTMLstr()` method that should return HTML string for the header item
`void` | `headPaint()` method that should decorate HTML for the header item
`String` | `itemHTMLstr(<int> index,<Object> item,<String> itemID)` method that should return HTML string for specified list item
`void` | `itemPaint(<int> index,<Object> item,<String> itemID)` method that should decorate HTML for specified item
`String` | `itemViewID(<int> index)` return the view ID for the item subview specified
`void` | `konstructor( <String> optName )`
`String` | `listHTMLstr()` return the combined HTML string built from each itemHTMLstr()
`void` | `paintHTML()` invoke itemPaint() for each item in our list

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

### MVCListView

    MVCListView()

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

Method Detail

### buildHTMLstr

    String buildHTMLstr()

generate container/framework HTML

### headHTMLstr

    String headHTMLstr()

method that should return HTML string for the header item

### headPaint

    void headPaint()

method that should decorate HTML for the header item

### itemHTMLstr

    String itemHTMLstr(<int> index,<Object> item,<String> itemID)

method that should return HTML string for specified list item

Parameters:

`index` - index into our MVCListModel

`item` - the actual item from our MVCListModel

`itemID` - the view ID of the corresponding item subview

### itemPaint

    void itemPaint(<int> index,<Object> item,<String> itemID)

method that should decorate HTML for specified item

Parameters:

`index` - index into our MVCListModel

`item` - the actual item from our MVCListModel

`itemID` - the view ID of the corresponding item subview

### itemViewID

    String itemViewID(<int> index)

return the view ID for the item subview specified

Parameters:

`index` - index into our MVCListModel/MVCListView

### konstructor

    void konstructor( <String> optName )

Parameters:

`optName` - optional name of this instance

### listHTMLstr

    String listHTMLstr()

return the combined HTML string built from each itemHTMLstr()

### paintHTML

    void paintHTML()

invoke itemPaint() for each item in our list

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

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