|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.BaseRenderer
public class BaseRenderer
Basic implementation of Renderer.
The protected hooks on this class are called in the following order:
Field Summary | |
---|---|
protected static int |
NO_CHILD_INDEX
Value passed to renderIndexedChild to indicate that no child exists. |
Constructor Summary | |
---|---|
BaseRenderer()
|
Method Summary | |
---|---|
protected int |
getNextRenderedChildIndex(UIXRenderingContext context,
UINode parentNode,
int afterChildIndex)
|
protected UINode |
getNextRenderedChildNode(UIXRenderingContext context,
UINode parentNode,
int afterChildIndex)
Returns the next child UINode that will be rendered after the passed in index. |
protected int |
getVisibleIndexedChildCount(UIXRenderingContext context,
UINode node)
Convenience function to return the number of non-skipped indexed children. |
protected void |
postrender(UIXRenderingContext context,
UINode node)
Called to render the portion after the contents. |
protected void |
prerender(UIXRenderingContext context,
UINode node)
Called to render the portion before the contents. |
void |
render(UIXRenderingContext context,
UINode node)
Render a UINode in a RenderingContext. |
protected void |
renderBetweenIndexedChildren(UIXRenderingContext context,
UINode node)
Called to render between each set of rendered indexed children. |
protected void |
renderBetweenIndexedChildren(UIXRenderingContext context,
UINode node,
int nextIndex)
Called to render between each set of rendered indexed children. |
protected void |
renderChild(UIXRenderingContext context,
UINode child)
Called to render a child. |
protected void |
renderContent(UIXRenderingContext context,
UINode node)
|
protected void |
renderIndexedChild(UIXRenderingContext context,
UINode node,
int childIndex)
Called to render an indexed child. |
protected void |
renderIndexedChild(UIXRenderingContext context,
UINode node,
int currVisChildIndex,
int prevVisChildIndex,
int nextVisChildIndex,
int ithRenderedChild)
Called each time an indexed child needs to be rendered. |
protected void |
renderNamedChild(UIXRenderingContext context,
UINode node,
java.lang.String childName)
Called to render a named child. |
protected void |
renderNamedChild(UIXRenderingContext context,
UINode node,
UINode child,
java.lang.String childName)
Called to render a named child. |
protected boolean |
skipChild(UIXRenderingContext context,
UINode node,
UINode child)
Called to determine if a specific child should be skipped. |
static boolean |
skipNode(UIXRenderingContext context,
UINode node)
Determines if a specific UINode should be skipped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int NO_CHILD_INDEX
renderIndexedChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode, int, int, int, int)
,
Constant Field ValuesConstructor Detail |
---|
public BaseRenderer()
Method Detail |
---|
public static boolean skipNode(UIXRenderingContext context, UINode node)
context
- the rendering contextnode
- the node under consideration
UIConstants.RENDERED_ATTR
attribute set to Boolean.FALSE.public void render(UIXRenderingContext context, UINode node) throws java.io.IOException
render
in interface Renderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected void renderContent(UIXRenderingContext context, UINode node) throws java.io.IOException
java.io.IOException
protected final UINode getNextRenderedChildNode(UIXRenderingContext context, UINode parentNode, int afterChildIndex)
getNextRenderedChildIndex(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode, int)
protected int getNextRenderedChildIndex(UIXRenderingContext context, UINode parentNode, int afterChildIndex)
afterChildIndex
- The indexed children coming after this index, will
be considered. To find the first rendered child use NO_CHILD_INDEX
NO_CHILD_INDEX
if there is none.getNextRenderedChildNode(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode, int)
protected void renderIndexedChild(UIXRenderingContext context, UINode node, int currVisChildIndex, int prevVisChildIndex, int nextVisChildIndex, int ithRenderedChild) throws java.io.IOException
The default implementation is call the three-argument version of renderIndexedChild().
java.io.IOException
renderChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void prerender(UIXRenderingContext context, UINode node) throws java.io.IOException
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected void postrender(UIXRenderingContext context, UINode node) throws java.io.IOException
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected void renderBetweenIndexedChildren(UIXRenderingContext context, UINode node) throws java.io.IOException
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected void renderBetweenIndexedChildren(UIXRenderingContext context, UINode node, int nextIndex) throws java.io.IOException
context
- the rendering contextnode
- the current UINodeindex
- the index of the next child to be rendered
java.io.IOException
protected boolean skipChild(UIXRenderingContext context, UINode node, UINode child)
context
- the rendering contextnode
- the current UINodechild
- the child under consideration
getVisibleIndexedChildCount(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderIndexedChild(UIXRenderingContext context, UINode node, int childIndex) throws java.io.IOException
renderChild()
.
java.io.IOException
renderChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected final void renderNamedChild(UIXRenderingContext context, UINode node, java.lang.String childName) throws java.io.IOException
java.io.IOException
renderChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderNamedChild(UIXRenderingContext context, UINode node, UINode child, java.lang.String childName) throws java.io.IOException
java.io.IOException
renderChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderChild(UIXRenderingContext context, UINode child) throws java.io.IOException
context
- the rendering contextnode
- the current UINodechild
- the child under consideration
java.io.IOException
protected int getVisibleIndexedChildCount(UIXRenderingContext context, UINode node)
context
- the rendering contextnode
- the current UINode
skipChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode, org.apache.myfaces.trinidadinternal.ui.UINode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |