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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    org.zkoss.zul.Listcell
    newListcell(org.zkoss.zul.Listitem item)
     
    org.zkoss.zul.Listitem
    newListitem(org.zkoss.zul.Listbox listbox)
     
    void
    render(org.zkoss.zul.Listitem item, T data, int index)
     
    abstract void
    renderListitem(org.zkoss.zul.Listitem item, T data, int index)
    Renders 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 Details

    • AbstractListitemRenderer

      public AbstractListitemRenderer()
  • Method Details

    • newListitem

      public org.zkoss.zul.Listitem newListitem(org.zkoss.zul.Listbox listbox)
      Specified by:
      newListitem in interface org.zkoss.zul.ListitemRendererExt
    • newListcell

      public org.zkoss.zul.Listcell newListcell(org.zkoss.zul.Listitem item)
      Specified by:
      newListcell in interface org.zkoss.zul.ListitemRendererExt
    • getControls

      public int getControls()
      Specified by:
      getControls in interface org.zkoss.zul.ListitemRendererExt
    • renderListitem

      public abstract void renderListitem(org.zkoss.zul.Listitem item, T data, int index)
      Renders data to the specified list item.
      Parameters:
      item - the listitem to render the result.
      data - data returned from ListModel.getElementAt(int)
      index - the row/list index of data that is currently being rendered
    • render

      public void render(org.zkoss.zul.Listitem item, T data, int index) throws Exception
      Specified by:
      render in interface org.zkoss.zul.ListitemRenderer<T>
      Throws:
      Exception