Interface EditorRenderer<L extends EditorLogic,D>

Type Parameters:
L - - the type of the editor logic
D - - the type of the item data
All Known Implementing Classes:
AsFacetValuesRenderer, DefaultAsMultiReferenceItemDetailRenderer, DefaultAsMultiReferenceItemMasterRenderer

public interface EditorRenderer<L extends EditorLogic,D>
Renderer for editors.
Since:
6.7
  • Method Summary

    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 Details

    • 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