Class AbstractListitemRenderer<T>
java.lang.Object
org.adempiere.webui.listbox.renderer.AbstractListitemRenderer<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
org.zkoss.zul.ListitemRenderer<T>
,org.zkoss.zul.ListitemRendererExt
public abstract class AbstractListitemRenderer<T>
extends Object
implements org.zkoss.zul.ListitemRenderer<T>, org.zkoss.zul.ListitemRendererExt
Abstract renderer base class for list box
-
Field Summary
Fields inherited from interface org.zkoss.zul.ListitemRendererExt
DETACH_ON_RENDER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
org.zkoss.zul.Listcell
newListcell
(org.zkoss.zul.Listitem item) org.zkoss.zul.Listitem
newListitem
(org.zkoss.zul.Listbox listbox) void
abstract void
renderListitem
(org.zkoss.zul.Listitem item, T data, int index) Renders data to the specified list item.
-
Constructor Details
-
AbstractListitemRenderer
public AbstractListitemRenderer()
-
-
Method Details
-
newListitem
public org.zkoss.zul.Listitem newListitem(org.zkoss.zul.Listbox listbox) - Specified by:
newListitem
in interfaceorg.zkoss.zul.ListitemRendererExt
-
newListcell
public org.zkoss.zul.Listcell newListcell(org.zkoss.zul.Listitem item) - Specified by:
newListcell
in interfaceorg.zkoss.zul.ListitemRendererExt
-
getControls
public int getControls()- Specified by:
getControls
in interfaceorg.zkoss.zul.ListitemRendererExt
-
renderListitem
Renders data to the specified list item.- Parameters:
item
- the listitem to render the result.data
- data returned fromListModel.getElementAt(int)
index
- the row/list index of data that is currently being rendered
-
render
-