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
|
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
|
ListView
ListView()
Author: Bruce Wallace (PolyGlotInc.com)
Version: 1.0
buildHTMLstr
String buildHTMLstr()
generate container/framework HTML
itemHTMLstr
String itemHTMLstr(<int> index,<Object> item,<String> itemID)
method that should return HTML string for specified list item
Parameters:
index - index into our ListModel
item - the actual item from our ListModel
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 ListModel
item - the actual item from our ListModel
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 ListModel/ListView
konstructor
void konstructor( <String> optName )
Parameters:
optName - optional name of this instance
listHTMLstr
String listHTMLstr()
paintHTML
void paintHTML()
Documentation generated by
JSDoc on Fri Mar 17 06:40:21 2006