org.zkoss.bind.impl
Class BindListitemRenderer

java.lang.Object
  extended by org.zkoss.bind.impl.AbstractRenderer
      extended by 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
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

BindListitemRenderer

public BindListitemRenderer()
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 interface ListitemRenderer<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 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
Throws:
java.lang.Exception


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo