Interface ListitemRenderer

public interface ListitemRenderer

Identifies components that can be used as "rubber stamps" to paint the cells in a Listbox.

If you need better control, your renderer can also implement ListitemRendererExt.

In addition, you could also implement RendererCtrl. For example, starts an transaction, and uses it to render all items for the same request.

See Also:
ListModel, Listbox, ListitemRendererExt

Method Summary
 void render(Listitem item, java.lang.Object data)
          Renders the data to the specified list item.

Method Detail


void render(Listitem item,
            java.lang.Object data)
            throws java.lang.Exception
Renders the data to the specified list item.

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)

Copyright © 2005-2007 Potix Corporation. All Rights Reserved.