Class TagRenderContext

java.lang.Object
org.zkoss.zhtml.impl.TagRenderContext

public class TagRenderContext extends Object
The render context used to render the additional part (JavaScript code snippet).
Since:
5.0.0
Author:
tomyeh
  • Constructor Details

    • TagRenderContext

      public TagRenderContext()
  • Method Details

    • complete

      public String complete()
      Completes the rendering by returning what are generated by renderBegin(org.zkoss.zk.ui.Component, java.util.Map, java.lang.String, boolean) and renderEnd(org.zkoss.zk.ui.Component) (never return null). After rendering, the context is reset.
    • renderBegin

      public void renderBegin(org.zkoss.zk.ui.Component comp, Map clientEvents, String specialRendererOutput, boolean lookup)
      Renders the beginning JavaScript code snippet for the component. It must be called before rendering the children.
      Parameters:
      clientEvents - a collection of client events. It is ignored if lookup is true.
      lookup - whether to look up instead of creating a widget. Specifies true if the widget is created somewhere else.
    • renderEnd

      public void renderEnd(org.zkoss.zk.ui.Component comp)
      Renders the ending JavaScript code snippet for the component. It must be called after rendering the children.