Package org.zkoss.zul

Interface TabboxRenderer<T>

  • All Known Implementing Classes:
    BindTabboxRenderer

    public interface TabboxRenderer<T>
    Identifies components that can be used as "rubber stamps" to paint the tab and tabpanel in a Tabbox.
    Since:
    7.0.0
    Author:
    jumperchen
    See Also:
    ListModel
    • Method Detail

      • renderTab

        void renderTab​(Tab tab,
                       T data,
                       int index)
                throws java.lang.Exception
        Renders the data to the specified tab.
        Parameters:
        tab - the tab 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
      • renderTabpanel

        void renderTabpanel​(Tabpanel tabpanel,
                            T data,
                            int index)
                     throws java.lang.Exception
        Renders the data to the specified tabpanel.
        Parameters:
        tabpanel - the tabpanel 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