public interface ListitemRenderer<T>
Listbox
.
If you need better control, your renderer can also implement
ListitemRendererExt
.
If you need better control for generting Listgroup
and
Listgroupfoot
, your renderer can also implement
ListgroupRendererExt
.
In addition, you could also
implement RendererCtrl
. For example, starts an transaction,
and uses it to render all items for the same request.
ListModel
,
Listbox
,
ListitemRendererExt
,
ListgroupRendererExt
Modifier and Type | Method and Description |
---|---|
void |
render(Listitem item,
T data,
int index)
Renders the data to the specified list item.
|
void render(Listitem item, T data, int index) throws java.lang.Exception
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 renderedjava.lang.Exception
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.