The Gravy Framework

Class ListView

Object
   |
   +--OObject
         |
         +--View
               |
               +--ListView
Direct Known Subclasses:
TransactionListView, BalanceListView

class ListView
extends View


This class is a View that expects to subscribe to a ListModel 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 ListView should define/override:
 (A) itemHTMLstr() which creates HTML for specified item
 (B) itemPaint() which decorates HTML for specified item

Author: Bruce Wallace (PolyGlotInc.com)
Defined in mvc.js

Version: 1.0


Constructor Summary
ListView ()
           
 
Method Summary
 String buildHTMLstr()
           generate container/framework HTML
 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 View
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, block, unblock
 

Constructor Detail

ListView

ListView()

Method Detail

buildHTMLstr

String buildHTMLstr()

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 Gravy Framework

Documentation generated by JSDoc on Fri Mar 17 06:40:21 2006