Package org.zkoss.bind.impl
Class BindListitemRenderer
- java.lang.Object
-
- org.zkoss.bind.impl.AbstractRenderer
-
- org.zkoss.bind.impl.BindListitemRenderer
-
- All Implemented Interfaces:
java.io.Serializable
,ListitemRenderer<java.lang.Object>
public class BindListitemRenderer extends AbstractRenderer implements ListitemRenderer<java.lang.Object>, java.io.Serializable
Listitem renderer for binding.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.bind.impl.AbstractRenderer
CURRENT_INDEX_RESOLVER_ATTR, EACH_ATTR, EACH_STATUS_VAR, EACH_VAR, IS_TEMPLATE_MODEL_ENABLED_ATTR, RENDERED_COMPONENTS, STATUS_ATTR, STATUS_POST_VAR
-
-
Constructor Summary
Constructors Constructor Description BindListitemRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, filterOutShadows, resolveTemplate, resolveTemplate, setAttributeName
-
-
-
-
Method Detail
-
render
public void render(Listitem item, java.lang.Object data, int index) throws java.lang.Exception
Description copied from interface:ListitemRenderer
Renders the data to the specified list item.- Specified by:
render
in interfaceListitemRenderer<java.lang.Object>
- Parameters:
item
- the listitem to render the result. Note: when this method is called, the listitem has no child at all, unless you don't returnListitemRendererExt.DETACH_ON_RENDER
whenListitemRendererExt.getControls()
is called.You can invoke
Listitem.setLabel(java.lang.String)
to createListcell
implicitly, or create one or multipleListcell
explicitly.data
- that is returned fromListModel.getElementAt(int)
index
- the index of the data that is currently being rendered- Throws:
java.lang.Exception
-
-