org.apache.myfaces.custom.navigation
Class HtmlNavigationRenderer
java.lang.Object
|
+--javax.faces.render.Renderer
|
+--org.apache.myfaces.renderkit.html.HtmlRenderer
|
+--org.apache.myfaces.renderkit.html.HtmlLinkRendererBase
|
+--org.apache.myfaces.renderkit.html.ext.HtmlLinkRenderer
|
+--org.apache.myfaces.custom.navigation.HtmlNavigationRenderer
- public class HtmlNavigationRenderer
- extends HtmlLinkRenderer
- Version:
- $Revision: 1.5 $ $Date: 2005/02/16 00:50:37 $
$Log: HtmlNavigationRenderer.java,v $
Revision 1.5 2005/02/16 00:50:37 oros
SF issue #1043331: replaced all by the corresponding numeric entity so safari users will be happy, too, with MyFaces output
Revision 1.4 2004/10/13 11:50:57 matze
renamed packages to org.apache
Revision 1.3 2004/07/01 21:53:08 mwessendorf
ASF switch
Revision 1.2 2004/05/18 17:08:21 manolito
no message
- Author:
- Manfred Geiler (latest modification by $Author: oros $)
Method Summary |
void |
decode(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
void |
encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
void |
encodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
void |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
protected java.lang.String |
getNavigationItemClass(HtmlPanelNavigation navPanel,
HtmlCommandNavigation navItem)
|
protected java.lang.String |
getNavigationItemStyle(HtmlPanelNavigation navPanel,
HtmlCommandNavigation navItem)
|
boolean |
getRendersChildren()
|
protected java.lang.String |
getStyle(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent link)
Can be overwritten by derived classes to overrule the style to be used. |
protected java.lang.String |
getStyleClass(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent link)
Can be overwritten by derived classes to overrule the style class to be used. |
protected void |
indent(javax.faces.context.ResponseWriter writer,
int level)
|
protected void |
renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
HtmlPanelNavigation panelNav,
java.util.List children,
int level)
|
protected void |
writeStyleAttributes(javax.faces.context.ResponseWriter writer,
java.lang.String style,
java.lang.String styleClass)
|
Methods inherited from class javax.faces.render.Renderer |
convertClientId, getConvertedValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlNavigationRenderer
public HtmlNavigationRenderer()
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren
in class HtmlLinkRendererBase
decode
public void decode(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
- Overrides:
decode
in class HtmlLinkRendererBase
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeBegin
in class HtmlLinkRendererBase
java.io.IOException
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeChildren
in class HtmlLinkRendererBase
java.io.IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeEnd
in class HtmlLinkRendererBase
java.io.IOException
renderChildren
protected void renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
HtmlPanelNavigation panelNav,
java.util.List children,
int level)
throws java.io.IOException
java.io.IOException
indent
protected void indent(javax.faces.context.ResponseWriter writer,
int level)
throws java.io.IOException
java.io.IOException
getNavigationItemStyle
protected java.lang.String getNavigationItemStyle(HtmlPanelNavigation navPanel,
HtmlCommandNavigation navItem)
getNavigationItemClass
protected java.lang.String getNavigationItemClass(HtmlPanelNavigation navPanel,
HtmlCommandNavigation navItem)
writeStyleAttributes
protected void writeStyleAttributes(javax.faces.context.ResponseWriter writer,
java.lang.String style,
java.lang.String styleClass)
throws java.io.IOException
java.io.IOException
getStyle
protected java.lang.String getStyle(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent link)
- Description copied from class:
HtmlLinkRendererBase
- Can be overwritten by derived classes to overrule the style to be used.
- Overrides:
getStyle
in class HtmlLinkRendererBase
getStyleClass
protected java.lang.String getStyleClass(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent link)
- Description copied from class:
HtmlLinkRendererBase
- Can be overwritten by derived classes to overrule the style class to be used.
- Overrides:
getStyleClass
in class HtmlLinkRendererBase