|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.impl.AbstractRenderer org.zkoss.bind.impl.BindListitemRenderer
public class BindListitemRenderer
Listitem renderer for binding.
Field Summary |
---|
Fields inherited from class org.zkoss.bind.impl.AbstractRenderer |
---|
EACH_ATTR, EACH_STATUS_VAR, EACH_VAR, STATUS_ATTR, STATUS_POST_VAR |
Constructor Summary | |
---|---|
BindListitemRenderer()
|
Method Summary | |
---|---|
void |
render(Listitem item,
java.lang.Object data,
int index)
Renders the data to the specified list item. |
Methods inherited from class org.zkoss.bind.impl.AbstractRenderer |
---|
addItemReference, addTemplateTracking, resoloveTemplate, resoloveTemplate, setAttributeName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BindListitemRenderer()
Method Detail |
---|
public void render(Listitem item, java.lang.Object data, int index) throws java.lang.Exception
ListitemRenderer
render
in interface ListitemRenderer<java.lang.Object>
item
- the listitem to render the result.
Note: when this method is called, the listitem has no child
at all, unless you don't return
ListitemRendererExt.DETACH_ON_RENDER
when
ListitemRendererExt.getControls()
is called.
You can invoke Listitem.setLabel(java.lang.String)
to create
Listcell
implicitly, or create one or multiple
Listcell
explicitly.
data
- that is returned from ListModel.getElementAt(int)
index
- the index of the data that is currently being rendered
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |