Interface IElement

    • Method Detail

      • setNextRenderer

        void setNextRenderer​(IRenderer renderer)
        Overrides the IRenderer instance which will be returned by the next call to the getRenderer().
        Parameters:
        renderer - the renderer instance
      • getRenderer

        IRenderer getRenderer()
        Gets a renderer for this element. Note that this method can be called more than once. By default each element should define its own renderer, but the renderer can be overridden by setNextRenderer(IRenderer) method call.
        Returns:
        a renderer for this element
      • createRendererSubTree

        IRenderer createRendererSubTree()
        Creates a renderer subtree with root in the current element. Compared to getRenderer(), the renderer returned by this method should contain all the child renderers for children of the current element.
        Returns:
        a renderer subtree for this element