Package org.zkoss.zul

Interface ComboitemRenderer<T>


public interface ComboitemRenderer<T>
Identifies components that can be used as "rubber stamps" to paint the cells in a Combobox.

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

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

Author:
jumperchen
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(Comboitem item, T data, int index)
    Renders the data to the specified comboitem.
  • Method Details

    • render

      void render(Comboitem item, T data, int index) throws Exception
      Renders the data to the specified comboitem.
      Parameters:
      item - the comboitem to render the result.
      data - that is returned from ListModel.getElementAt(int)
      index - the index of the data that is currently being rendered
      Throws:
      Exception