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

java.lang.Object
  extended by org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlNavigationMenuRendererUtils

 class HtmlNavigationMenuRendererUtils
extends java.lang.Object

Author:
Thomas Spiegl, Manfred Geiler

Method Summary
static void debugTree(org.apache.commons.logging.Log log, javax.faces.context.FacesContext facesContext, java.util.List children, int level)
           
static HtmlCommandNavigationItem findPreviousItem(javax.faces.component.UIViewRoot previousViewRoot, java.lang.String clientId)
           
static javax.faces.el.MethodBinding getMethodBinding(javax.faces.context.FacesContext facesContext, java.lang.String value, boolean actionListener)
           
static java.lang.String getNavigationItemClass(HtmlPanelNavigationMenu navPanel, HtmlCommandNavigationItem navItem)
           
static java.lang.String getNavigationItemStyle(HtmlPanelNavigationMenu navPanel, HtmlCommandNavigationItem navItem)
           
static javax.faces.component.UIComponent getPanel(javax.faces.component.UIComponent link)
           
static void indent(javax.faces.context.ResponseWriter writer, int level)
           
static boolean isListLayout(HtmlPanelNavigationMenu panelNav)
           
static void renderChildren(javax.faces.context.FacesContext facesContext, HtmlCommandNavigationItem component, HtmlPanelNavigationMenu parentPanelNav)
           
static void renderChildrenListLayout(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, HtmlPanelNavigationMenu panelNav, java.util.List children, int level)
           
static void renderChildrenTableLayout(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, HtmlPanelNavigationMenu panelNav, java.util.List children, int level)
           
static void setAttributeValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent comp, java.lang.String attribute, java.lang.String value)
           
static void writeStyleAttributes(javax.faces.context.ResponseWriter writer, java.lang.String style, java.lang.String styleClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderChildrenListLayout

public static void renderChildrenListLayout(javax.faces.context.FacesContext facesContext,
                                            javax.faces.context.ResponseWriter writer,
                                            HtmlPanelNavigationMenu panelNav,
                                            java.util.List children,
                                            int level)
                                     throws java.io.IOException
Throws:
java.io.IOException

renderChildrenTableLayout

public static void renderChildrenTableLayout(javax.faces.context.FacesContext facesContext,
                                             javax.faces.context.ResponseWriter writer,
                                             HtmlPanelNavigationMenu panelNav,
                                             java.util.List children,
                                             int level)
                                      throws java.io.IOException
Throws:
java.io.IOException

indent

public static void indent(javax.faces.context.ResponseWriter writer,
                          int level)
                   throws java.io.IOException
Throws:
java.io.IOException

getNavigationItemStyle

public static java.lang.String getNavigationItemStyle(HtmlPanelNavigationMenu navPanel,
                                                      HtmlCommandNavigationItem navItem)

getNavigationItemClass

public static java.lang.String getNavigationItemClass(HtmlPanelNavigationMenu navPanel,
                                                      HtmlCommandNavigationItem navItem)

writeStyleAttributes

public static void writeStyleAttributes(javax.faces.context.ResponseWriter writer,
                                        java.lang.String style,
                                        java.lang.String styleClass)
                                 throws java.io.IOException
Throws:
java.io.IOException

getPanel

public static javax.faces.component.UIComponent getPanel(javax.faces.component.UIComponent link)

isListLayout

public static boolean isListLayout(HtmlPanelNavigationMenu panelNav)

renderChildren

public static void renderChildren(javax.faces.context.FacesContext facesContext,
                                  HtmlCommandNavigationItem component,
                                  HtmlPanelNavigationMenu parentPanelNav)
                           throws java.io.IOException
Throws:
java.io.IOException

debugTree

public static void debugTree(org.apache.commons.logging.Log log,
                             javax.faces.context.FacesContext facesContext,
                             java.util.List children,
                             int level)

findPreviousItem

public static HtmlCommandNavigationItem findPreviousItem(javax.faces.component.UIViewRoot previousViewRoot,
                                                         java.lang.String clientId)

getMethodBinding

public static javax.faces.el.MethodBinding getMethodBinding(javax.faces.context.FacesContext facesContext,
                                                            java.lang.String value,
                                                            boolean actionListener)

setAttributeValue

public static void setAttributeValue(javax.faces.context.FacesContext facesContext,
                                     javax.faces.component.UIComponent comp,
                                     java.lang.String attribute,
                                     java.lang.String value)


Copyright 2008 The Apache Software Foundation. All Rights Reserved.