oracle.cabo.ui.composite
Class UINodeRenderer
java.lang.Object
|
+--oracle.cabo.ui.composite.UINodeRenderer
- All Implemented Interfaces:
- Renderer
- Direct Known Subclasses:
- TemplateRenderer
- public abstract class UINodeRenderer
- extends java.lang.Object
- implements Renderer
Renderer used by composite UINode renderers to render content.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UINodeRenderer
public UINodeRenderer()
getRenderingUINode
protected abstract UINode getRenderingUINode(RenderingContext context,
UINode node)
render
public void render(RenderingContext context,
UINode node)
throws java.io.IOException
- Render a UINode in a RenderingContext.
- Specified by:
render
in interface Renderer
prerender
protected void prerender(RenderingContext context,
UINode node)
throws java.io.IOException
- Called to render the portion before the contents.
- Parameters:
context
- the rendering contextnode
- the current UINode
postrender
protected void postrender(RenderingContext context,
UINode node)
throws java.io.IOException
- Called to render the portion after the contents. Default
implementation does nothing.
- Parameters:
context
- the rendering contextnode
- the current UINode
renderWithNode
protected void renderWithNode(RenderingContext context,
UINode node,
UINode renderingUINode)
throws java.io.IOException
- See Also:
renderInCompositeContext(RenderingContext,UINode,UINode)
renderInCompositeContext
public static void renderInCompositeContext(RenderingContext context,
UINode node,
UINode renderingUINode)
throws java.io.IOException
- Parameters:
context
- the context that node
is defined in.node
- this is the node that will be used for data.renderingUINode
- this UINode subtree will be used to do the actual
rendering (ie: this is the template UINode). It may pull attributes
and/or indexed/named children from node
. It renders in its
own RenderingContext.
useGlobalCurrentDataObject
protected boolean useGlobalCurrentDataObject(RenderingContext context)
- If true, setting the current data object inside the template
immediately "escapes" to the outside world. By default,
the current data object only "escapes" through ContextPoppingUINodes
(and the corresponding UIX element).