|
||||||||||
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.desktop.HtmlLafRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.desktop.TabBarRenderer
public class TabBarRenderer
Renderer for tab bars
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 | |
---|---|
TabBarRenderer()
|
Method Summary | |
---|---|
protected java.lang.String |
getElementName(UIXRenderingContext context,
UINode node)
Called to retrieve the element name to render. |
protected org.apache.myfaces.trinidad.component.UIXHierarchy |
getHierarchyBase(UIXRenderingContext context,
UINode node)
|
protected UINode |
getStamp(UIXRenderingContext context,
UINode node)
|
protected java.lang.Object |
getStyleClass(UIXRenderingContext context,
UINode node)
Override of getStyleClass() which forces style class to menuTabs. |
protected boolean |
isRendered(UIXRenderingContext context,
UINode stamp)
|
protected boolean |
isSelected(UIXRenderingContext context,
UINode node,
int index)
|
protected void |
postrender(UIXRenderingContext context,
UINode node)
Override to add support for rendering syle elements |
protected void |
prerender(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 |
renderBetweenIndexedChildren(UIXRenderingContext context,
UINode node)
Renders a separator between tabs. |
protected void |
renderBetweenNodes(UIXRenderingContext context,
UINode node)
Renders a separator between tabs. |
protected void |
renderContent(UIXRenderingContext context,
UINode node)
|
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 |
renderNode(UIXRenderingContext context,
UINode child,
boolean selected)
|
protected void |
renderNode(UIXRenderingContext context,
UINode child,
boolean selected,
boolean isFirst,
boolean isLast,
boolean isNextSelected)
|
protected void |
renderTabStyleAttrs(UIXRenderingContext context,
UINode node,
boolean selected,
boolean disabled)
Renders the style attributes for menuTabs items |
protected boolean |
setNewPath(UIXRenderingContext context,
UINode node,
org.apache.myfaces.trinidad.component.UIXHierarchy component)
|
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.desktop.HtmlLafRenderer |
---|
isGecko, isIE, isNetscape, isSafari, renderRepeatingImage, renderRepeatingImage, renderRepeatingImage, renderTableDataIcon, renderTransparent, writeCacheImageURI |
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, renderChild, 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 TabBarRenderer()
Method Detail |
---|
protected java.lang.String getElementName(UIXRenderingContext context, UINode node)
ElementRenderer
getElementName
in class ElementRenderer
context
- the rendering contextnode
- the current nodeprotected 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 void prerender(UIXRenderingContext context, UINode node) throws java.io.IOException
XhtmlLafRenderer
prerender
in class XhtmlLafRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
ElementRenderer.renderAttributes(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
,
ElementRenderer.getElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected org.apache.myfaces.trinidad.component.UIXHierarchy getHierarchyBase(UIXRenderingContext context, UINode node)
protected UINode getStamp(UIXRenderingContext context, UINode node)
protected boolean setNewPath(UIXRenderingContext context, UINode node, org.apache.myfaces.trinidad.component.UIXHierarchy component)
protected void renderContent(UIXRenderingContext context, UINode node) throws java.io.IOException
renderContent
in class BaseRenderer
java.io.IOException
protected boolean isRendered(UIXRenderingContext context, UINode stamp)
protected 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 renderNode(UIXRenderingContext context, UINode child, boolean selected, boolean isFirst, boolean isLast, boolean isNextSelected) throws java.io.IOException
java.io.IOException
protected void renderNode(UIXRenderingContext context, UINode child, boolean selected) throws java.io.IOException
java.io.IOException
protected void renderIndexedChild(UIXRenderingContext context, UINode node, int currVisChildIndex, int prevVisChildIndex, int nextVisChildIndex, int ithRenderedChild) throws java.io.IOException
BaseRenderer
The default implementation is call the three-argument version of renderIndexedChild().
renderIndexedChild
in class BaseRenderer
java.io.IOException
BaseRenderer.renderChild(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderBetweenIndexedChildren(UIXRenderingContext context, UINode node) throws java.io.IOException
renderBetweenIndexedChildren
in class BaseRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
protected void renderBetweenNodes(UIXRenderingContext context, UINode node) throws java.io.IOException
java.io.IOException
protected void renderTabStyleAttrs(UIXRenderingContext context, UINode node, boolean selected, boolean disabled) throws java.io.IOException
java.io.IOException
protected java.lang.Object getStyleClass(UIXRenderingContext context, UINode node)
getStyleClass
in class XhtmlLafRenderer
protected boolean isSelected(UIXRenderingContext context, UINode node, int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |