|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--oracle.cabo.ui.BaseRenderer
|
+--oracle.cabo.ui.ElementRenderer
Renderer implementation that can output elements.
This base implementation outputs no attributes; clients
must override renderAttributes(). It will
output the start and element tags, based on the return
value of getElementName().
| Fields inherited from class oracle.cabo.ui.BaseRenderer |
NO_CHILD_INDEX |
| Constructor Summary | |
ElementRenderer()
Creates an ElementRenderer |
|
| Method Summary | |
protected java.lang.String |
getElementName(RenderingContext context,
UINode node)
Called to retrieve the element name to render. |
static Renderer |
getRenderer()
Returns a shared instance of this renderer. |
protected void |
postrender(RenderingContext context,
UINode node)
Called to render the portion after the contents. |
protected void |
prerender(RenderingContext context,
UINode node)
Called to render the portion before the contents. |
protected void |
renderAttribute(RenderingContext context,
java.lang.String name,
java.lang.Object value)
Renders a single attribute. |
protected void |
renderAttribute(RenderingContext context,
UINode node,
java.lang.String name,
AttributeKey valueKey)
Renders a single attribute, getting the value from the UINode. |
protected void |
renderAttribute(RenderingContext context,
UINode node,
java.lang.String name,
AttributeKey valueKey,
java.lang.Object defaultValue)
Renders a single attribute, getting the value from the UINode, and substituting a default value if the node doesn't have that attribute set. |
protected void |
renderAttribute(RenderingContext context,
UINode node,
java.lang.String name,
java.lang.Object defaultValue)
Renders a single attribute, getting the value from the UINode, and substituting a default value if the node doesn't have that attribute set. |
protected void |
renderAttributes(RenderingContext context,
UINode node)
Renders attributes of the current node. |
| Methods inherited from class oracle.cabo.ui.BaseRenderer |
getNextRenderedChildIndex, getNextRenderedChildNode, getVisibleIndexedChildCount, render, renderBetweenIndexedChildren, renderBetweenIndexedChildren, renderChild, renderContent, renderIndexedChild, renderIndexedChild, renderNamedChild, renderNamedChild, skipChild, skipNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementRenderer()
| Method Detail |
public static Renderer getRenderer()
protected void prerender(RenderingContext context,
UINode node)
throws java.io.IOException
renderAttributes(). Uses the element
name returned by getElementName().prerender in class BaseRenderercontext - the rendering contextnode - the current UINoderenderAttributes(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode),
getElementName(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
protected void postrender(RenderingContext context,
UINode node)
throws java.io.IOException
getElementName().postrender in class BaseRenderercontext - the rendering contextnode - the current UINodegetElementName(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
protected void renderAttributes(RenderingContext context,
UINode node)
throws java.io.IOException
context - the rendering contextnode - the current UINode
protected void renderAttribute(RenderingContext context,
java.lang.String name,
java.lang.Object value)
throws java.io.IOException
context - the rendering contextname - the attribute name for renderingvalue - the attribute value
protected final void renderAttribute(RenderingContext context,
UINode node,
java.lang.String name,
AttributeKey valueKey)
throws java.io.IOException
context - the rendering contextnode - the node to get the attribute fromname - the attribute name for renderingvalueKey - the key to use to retrieve the attribute
protected final void renderAttribute(RenderingContext context,
UINode node,
java.lang.String name,
AttributeKey valueKey,
java.lang.Object defaultValue)
throws java.io.IOException
context - the rendering contextnode - the node to get the attribute fromname - the attribute name for renderingvalueKey - the key to use to retrieve the attributedefaultValue - the default value to use if the attribute
isn't set
protected final void renderAttribute(RenderingContext context,
UINode node,
java.lang.String name,
java.lang.Object defaultValue)
throws java.io.IOException
context - the rendering contextnode - the node to get the attribute fromname - the attribute name for rendering and for retrieving
the valuedefaultValue - the default value to use if the attribute
isn't set
protected java.lang.String getElementName(RenderingContext context,
UINode node)
context - the rendering contextnode - the current node
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||