Interface EditorRenderer<L extends EditorLogic,​D>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void beforeRender​(L logic, org.zkoss.zk.ui.Component parent, D data)
      This method is called before the render(EditorLogic, Component, Object) method is called.
      default boolean canRender​(L logic, org.zkoss.zk.ui.Component parent, D data)
      Checks if a specific item can be rendered.
      default boolean isEnabled​(L logic)
      Checks if this renderer is enabled for a specific context.
      void render​(L logic, org.zkoss.zk.ui.Component parent, D data)
      Creates a new editor item component and attaches it to the specified parent component.
    • Method Detail

      • isEnabled

        default boolean isEnabled​(L logic)
        Checks if this renderer is enabled for a specific context.
        Parameters:
        logic - - the editor logic
        Returns:
        true if the renderer is enabled, false otherwise
      • canRender

        default boolean canRender​(L logic,
                                  org.zkoss.zk.ui.Component parent,
                                  D data)
        Checks if a specific item can be rendered.
        Parameters:
        logic - - the editor logic
        parent - - the parent component
        data - - the item data
        Returns:
        true if the item can be rendered, false otherwise
      • beforeRender

        default void beforeRender​(L logic,
                                  org.zkoss.zk.ui.Component parent,
                                  D data)
        This method is called before the render(EditorLogic, Component, Object) method is called. This method is always called even when using lazy rendering.
        Parameters:
        logic - - the editor logic
        parent - - the parent component
        data - - the item data
      • render

        void render​(L logic,
                    org.zkoss.zk.ui.Component parent,
                    D data)
        Creates a new editor item component and attaches it to the specified parent component.
        Parameters:
        logic - - the editor logic
        parent - - the parent component
        data - - the item data