org.apache.myfaces.custom.navmenu.htmlnavmenu
Class HtmlNavigationMenuRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase
              extended by org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlLinkRenderer
                  extended by org.apache.myfaces.renderkit.html.ext.HtmlLinkRenderer
                      extended by org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlNavigationMenuRenderer
All Implemented Interfaces:
EventListener, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener

public class HtmlNavigationMenuRenderer
extends org.apache.myfaces.renderkit.html.ext.HtmlLinkRenderer
implements javax.faces.event.ComponentSystemEventListener

Many thanks to the guys from Swiss Federal Institute of Intellectual Property & Marc Bouquet for helping to develop this component.

Author:
Thomas Spiegl, Manfred Geiler

Field Summary
static String RENDERER_TYPE
           
 
Fields inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase
END_LINK_OUTCOME_AS_SPAN
 
Constructor Summary
HtmlNavigationMenuRenderer()
           
 
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)
           
 boolean getRendersChildren()
           
protected  String getStyle(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent link)
           
protected  String getStyleClass(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent link)
           
 void processEvent(javax.faces.event.ComponentSystemEvent event)
           
protected  void renderListLayout(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlPanelNavigationMenu panelNav)
           
 
Methods inherited from class org.apache.myfaces.renderkit.html.ext.HtmlLinkRenderer
renderCommandLinkEnd, renderCommandLinkStart, renderOutputLinkEnd, renderOutputLinkStart, renderSpanEnd, renderSpanStart
 
Methods inherited from class org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlLinkRenderer
addHiddenCommandParameter, findNestingForm
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase
buildServerOnclick, renderBehaviorizedJavaScriptAnchorStart, renderJavaScriptAnchorStart, renderNonJavaScriptAnchorStart, renderOutcomeLinkEnd, renderOutcomeLinkStart
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, isCommonEventsOptimizationEnabled, isCommonPropertiesOptimizationEnabled, renderId, shouldRenderId, toUri
 
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
 

Field Detail

RENDERER_TYPE

public static final String RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

HtmlNavigationMenuRenderer

public HtmlNavigationMenuRenderer()
Method Detail

processEvent

public void processEvent(javax.faces.event.ComponentSystemEvent event)
Specified by:
processEvent in interface javax.faces.event.ComponentSystemEventListener

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent component)
                 throws IOException
Overrides:
encodeBegin in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase
Throws:
IOException

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIComponent component)
                    throws IOException
Overrides:
encodeChildren in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase
Throws:
IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component)
               throws IOException
Overrides:
encodeEnd in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase
Throws:
IOException

renderListLayout

protected void renderListLayout(javax.faces.context.FacesContext facesContext,
                                org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlPanelNavigationMenu panelNav)
                         throws IOException
Throws:
IOException

getStyle

protected String getStyle(javax.faces.context.FacesContext facesContext,
                          javax.faces.component.UIComponent link)
Overrides:
getStyle in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase

getStyleClass

protected String getStyleClass(javax.faces.context.FacesContext facesContext,
                               javax.faces.component.UIComponent link)
Overrides:
getStyleClass in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.