The Gravey 2.0 Framework

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, souper_, isInstanceOf
 

Constructor Detail

MVCListView

MVCListView()

Method Detail

buildHTMLstr

String buildHTMLstr()

headHTMLstr

String headHTMLstr()

headPaint

void headPaint()

itemHTMLstr

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

itemPaint

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

itemViewID

String itemViewID(<int> index)

konstructor

void konstructor( <String> optName )

listHTMLstr

String listHTMLstr()

paintHTML

void paintHTML()

The Gravey 2.0 Framework

Documentation generated by JSDoc on Sat Dec 8 21:51:44 2007