|
||||||||||
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
org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.BorderLayoutRenderer
public class BorderLayoutRenderer
Field Summary |
---|
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer |
---|
TRANSPARENT_GIF |
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
NO_CHILD_INDEX |
Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafConstants |
---|
NBSP_CHAR, NBSP_STRING, NOT_FOUND, ONE, TWO, URI_DELIMITER, ZERO |
Constructor Summary | |
---|---|
BorderLayoutRenderer()
|
Method Summary | |
---|---|
protected int |
getDefaultMarginIndent(UIXRenderingContext context,
UINode node)
Returns the default marign indent to use if no CELL_PADDING_ATTR is specified |
protected java.lang.String |
getElementName(UIXRenderingContext context,
UINode node)
Called to retrieve the element name to render. |
protected boolean |
hasSideNodes(UIXRenderingContext context,
UINode node)
|
protected void |
postrender(UIXRenderingContext context,
UINode node)
Override to add support for rendering syle elements |
protected void |
renderAttributes(UIXRenderingContext context,
UINode node)
Renders attributes of the current node. |
protected void |
renderContent(UIXRenderingContext context,
UINode node)
since this class overrides the method in BaseRenderer, the method renderIndexedChildren is provided to access the superclass method. |
protected void |
renderIndexedChildren(UIXRenderingContext context,
UINode node)
writes out the indexed children. |
protected void |
renderLeftSideNode(UIXRenderingContext context,
UINode node,
java.lang.String leftName,
UINode leftNode,
java.lang.Integer rowSpan,
java.lang.Integer colSpan)
renders the left most side node in this borderLayout |
protected void |
renderMargin(UIXRenderingContext context,
UINode node,
java.lang.Integer rowSpan)
this method renders white space as the margin. |
protected void |
renderSideNode(UIXRenderingContext context,
UINode node,
UINode sideNode,
java.lang.String sideNodeName,
java.lang.Integer rowSpan,
java.lang.String width)
Renders one of the side nodes. |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.ElementRenderer |
---|
getRenderer, renderAttribute, renderAttribute, renderAttribute, renderAttribute |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
getNextRenderedChildIndex, getNextRenderedChildNode, getVisibleIndexedChildCount, renderBetweenIndexedChildren, renderBetweenIndexedChildren, renderChild, 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 BorderLayoutRenderer()
Method Detail |
---|
protected void renderAttributes(UIXRenderingContext context, UINode node) throws java.io.IOException
ElementRenderer
renderAttributes
in class XhtmlLafRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected final void renderIndexedChildren(UIXRenderingContext context, UINode node) throws java.io.IOException
java.io.IOException
renderContent(UIXRenderingContext, UINode)
protected void renderContent(UIXRenderingContext context, UINode node) throws java.io.IOException
renderContent
in class BaseRenderer
java.io.IOException
renderIndexedChildren(UIXRenderingContext, UINode)
,
BaseRenderer.renderContent(UIXRenderingContext, UINode)
protected java.lang.String getElementName(UIXRenderingContext context, UINode node)
ElementRenderer
getElementName
in class ElementRenderer
context
- the rendering contextnode
- the current nodeprotected void postrender(UIXRenderingContext context, UINode node) throws java.io.IOException
XhtmlLafRenderer
postrender
in class XhtmlLafRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
ElementRenderer.getElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderMargin(UIXRenderingContext context, UINode node, java.lang.Integer rowSpan) throws java.io.IOException
rowSpan
- the numnber of rows this margin must span. maybe null to
indicate a single row.
java.io.IOException
protected void renderLeftSideNode(UIXRenderingContext context, UINode node, java.lang.String leftName, UINode leftNode, java.lang.Integer rowSpan, java.lang.Integer colSpan) throws java.io.IOException
leftName
- the name of the namedChild to useleftNode
- the namedChild node corresponding to leftName
rowSpan
- the number of table rows between the TOP and BOTTOM nodes.
there is a row for each innerTop, contents and innerBottom namedChildren.colSpan
- the number of table columns between the margins.
there is a column for each of the two side nodes and inner side nodes and the
contents.
java.io.IOException
protected void renderSideNode(UIXRenderingContext context, UINode node, UINode sideNode, java.lang.String sideNodeName, java.lang.Integer rowSpan, java.lang.String width) throws java.io.IOException
java.io.IOException
protected int getDefaultMarginIndent(UIXRenderingContext context, UINode node)
protected boolean hasSideNodes(UIXRenderingContext context, UINode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |