|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.BaseRenderer
org.apache.myfaces.trinidadinternal.ui.ElementRenderer
@Deprecated public class 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().
| Field Summary |
|---|
| Fields inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
|---|
NO_CHILD_INDEX |
| Constructor Summary | |
|---|---|
ElementRenderer()
Deprecated. Creates an ElementRenderer |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getElementName(UIXRenderingContext context,
UINode node)
Deprecated. Called to retrieve the element name to render. |
static Renderer |
getRenderer()
Deprecated. Returns a shared instance of this renderer. |
protected void |
postrender(UIXRenderingContext context,
UINode node)
Deprecated. Called to render the portion after the contents. |
protected void |
prerender(UIXRenderingContext context,
UINode node)
Deprecated. Called to render the portion before the contents. |
protected void |
renderAttribute(UIXRenderingContext context,
java.lang.String name,
java.lang.Object value)
Deprecated. Renders a single attribute. |
protected void |
renderAttribute(UIXRenderingContext context,
UINode node,
AttributeKey key,
java.lang.Object defaultValue)
Deprecated. 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(UIXRenderingContext context,
UINode node,
java.lang.String name,
AttributeKey valueKey)
Deprecated. Renders a single attribute, getting the value from the UINode. |
protected void |
renderAttribute(UIXRenderingContext context,
UINode node,
java.lang.String name,
AttributeKey valueKey,
java.lang.Object defaultValue)
Deprecated. 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(UIXRenderingContext context,
UINode node)
Deprecated. Renders attributes of the current node. |
| Methods inherited from class org.apache.myfaces.trinidadinternal.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(UIXRenderingContext context,
UINode node)
throws java.io.IOException
renderAttributes(). Uses the element
name returned by getElementName().
prerender in class BaseRenderercontext - the rendering contextnode - the current UINode
java.io.IOExceptionrenderAttributes(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode),
getElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void postrender(UIXRenderingContext context,
UINode node)
throws java.io.IOException
getElementName().
postrender in class BaseRenderercontext - the rendering contextnode - the current UINode
java.io.IOExceptiongetElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderAttributes(UIXRenderingContext context,
UINode node)
throws java.io.IOException
context - the rendering contextnode - the current UINode
java.io.IOException
protected void renderAttribute(UIXRenderingContext 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
java.io.IOException
protected final void renderAttribute(UIXRenderingContext 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
java.io.IOException
protected final void renderAttribute(UIXRenderingContext 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
java.io.IOException
protected final void renderAttribute(UIXRenderingContext context,
UINode node,
AttributeKey key,
java.lang.Object defaultValue)
throws java.io.IOException
context - the rendering contextnode - the node to get the attribute fromkey - the attribute key for rendering and for retrieving
the valuedefaultValue - the default value to use if the attribute
isn't set
java.io.IOException
protected java.lang.String getElementName(UIXRenderingContext context,
UINode node)
context - the rendering contextnode - the current node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||