|
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
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(RenderingContext context,
UINode parentNode,
int afterChildIndex)
|
protected UINode |
getNextRenderedChildNode(RenderingContext context,
UINode parentNode,
int afterChildIndex)
Returns the next child UINode that will be rendered after the passed in index. |
protected int |
getVisibleIndexedChildCount(RenderingContext context,
UINode node)
Convenience function to return the number of non-skipped indexed children. |
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. |
void |
render(RenderingContext context,
UINode node)
Render a UINode in a RenderingContext. |
protected void |
renderBetweenIndexedChildren(RenderingContext context,
UINode node)
Called to render between each set of rendered indexed children. |
protected void |
renderBetweenIndexedChildren(RenderingContext context,
UINode node,
int nextIndex)
Called to render between each set of rendered indexed children. |
protected void |
renderChild(RenderingContext context,
UINode child)
Called to render a child. |
protected void |
renderContent(RenderingContext context,
UINode node)
|
protected void |
renderIndexedChild(RenderingContext context,
UINode node,
int childIndex)
Called to render an indexed child. |
protected void |
renderIndexedChild(RenderingContext context,
UINode node,
int currVisChildIndex,
int prevVisChildIndex,
int nextVisChildIndex,
int ithRenderedChild)
Called each time an indexed child needs to be rendered. |
protected void |
renderNamedChild(RenderingContext context,
UINode node,
java.lang.String childName)
Called to render a named child. |
protected void |
renderNamedChild(RenderingContext context,
UINode node,
UINode child,
java.lang.String childName)
Called to render a named child. |
protected boolean |
skipChild(RenderingContext context,
UINode node,
UINode child)
Called to determine if a specific child should be skipped. |
static boolean |
skipNode(RenderingContext 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(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, int, int, int, int)
Constructor Detail |
public BaseRenderer()
Method Detail |
public static boolean skipNode(RenderingContext context, UINode node)
context
- the rendering contextnode
- the node under considerationUIConstants.RENDERED_ATTR
attribute set to Boolean.FALSE.public void render(RenderingContext context, UINode node) throws java.io.IOException
render
in interface Renderer
context
- the rendering contextnode
- the current UINodeprotected void renderContent(RenderingContext context, UINode node) throws java.io.IOException
protected final UINode getNextRenderedChildNode(RenderingContext context, UINode parentNode, int afterChildIndex)
getNextRenderedChildIndex(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, int)
protected int getNextRenderedChildIndex(RenderingContext 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(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, int)
protected void renderIndexedChild(RenderingContext 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().
renderChild(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
protected void prerender(RenderingContext context, UINode node) throws java.io.IOException
context
- the rendering contextnode
- the current UINodeprotected void postrender(RenderingContext context, UINode node) throws java.io.IOException
context
- the rendering contextnode
- the current UINodeprotected void renderBetweenIndexedChildren(RenderingContext context, UINode node) throws java.io.IOException
context
- the rendering contextnode
- the current UINodeprotected void renderBetweenIndexedChildren(RenderingContext context, UINode node, int nextIndex) throws java.io.IOException
context
- the rendering contextnode
- the current UINodeindex
- the index of the next child to be renderedprotected boolean skipChild(RenderingContext context, UINode node, UINode child)
context
- the rendering contextnode
- the current UINodechild
- the child under consideration
getVisibleIndexedChildCount(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
protected void renderIndexedChild(RenderingContext context, UINode node, int childIndex) throws java.io.IOException
renderChild()
.
renderChild(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
protected final void renderNamedChild(RenderingContext context, UINode node, java.lang.String childName) throws java.io.IOException
renderChild(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
protected void renderNamedChild(RenderingContext context, UINode node, UINode child, java.lang.String childName) throws java.io.IOException
renderChild(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode)
protected void renderChild(RenderingContext context, UINode child) throws java.io.IOException
context
- the rendering contextnode
- the current UINodechild
- the child under considerationprotected int getVisibleIndexedChildCount(RenderingContext context, UINode node)
context
- the rendering contextnode
- the current UINode
skipChild(oracle.cabo.ui.RenderingContext, oracle.cabo.ui.UINode, oracle.cabo.ui.UINode)
|
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 |