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:
    ListModel, Combobox, ComboitemRendererExt
    • Method Detail

      • render

        void render​(Comboitem item,
                    T data,
                    int index)
             throws java.lang.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:
        java.lang.Exception