org.zkoss.bind.impl
Class BindListitemRenderer

java.lang.Object
  extended by org.zkoss.bind.impl.BindListitemRenderer
All Implemented Interfaces:
ListitemRenderer

public class BindListitemRenderer
extends java.lang.Object
implements ListitemRenderer

Listitem renderer for binding.

Author:
henrichen

Constructor Summary
BindListitemRenderer()
           
 
Method Summary
 void render(Listitem item, java.lang.Object data)
          Renders the data to the specified list item.
 
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)
            throws java.lang.Exception
Description copied from interface: ListitemRenderer
Renders the data to the specified list item.

Specified by:
render in interface ListitemRenderer
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)
Throws:
java.lang.Exception


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