Package org.zkoss.zul
Interface RowRenderer<T>
-
- All Known Implementing Classes:
BindRowRenderer
public interface RowRenderer<T>
Identifies components that can be used as "rubber stamps" to paint the cells in aGrid
.If you need better control, your renderer can also implement
RowRendererExt
. If you need better control about generatingGroup
andGroupfoot
, your renderer can also implementGroupRendererExt
.In addition, you could also implement
RendererCtrl
. For example, starts an transaction, and uses it to render all rows for the same request.- Author:
- tomyeh
- See Also:
ListModel
,Listbox
,RowRendererExt
,GroupRendererExt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
render(Row row, T data, int index)
Renders the data to the specified row.
-
-
-
Method Detail
-
render
void render(Row row, T data, int index) throws java.lang.Exception
Renders the data to the specified row.- Parameters:
row
- the row to render the result. Note: when this method is called, the row has no child at all, unless you don't returnRowRendererExt.DETACH_ON_RENDER
whenRowRendererExt.getControls()
is called.data
- that is returned fromListModel.getElementAt(int)
index
- the index of the data that is currently being rendered- Throws:
java.lang.Exception
-
-