org.apache.myfaces.custom.toggle
Class TogglePanelRenderer

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.HtmlGroupRendererBase
              extended by org.apache.myfaces.custom.toggle.TogglePanelRenderer

public class TogglePanelRenderer
extends HtmlGroupRendererBase


Constructor Summary
TogglePanelRenderer()
           
 
Method Summary
 void addToggleLinkJavascript(javax.faces.context.FacesContext context)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
static java.lang.String getToggleJavascriptFunctionName(javax.faces.context.FacesContext context, TogglePanel togglePanel)
           
static boolean hasStyleAttribute(javax.faces.component.UIComponent component)
           
static boolean isHiddenWhenToggled(javax.faces.component.UIComponent component)
           
static void setComponentVisibility(javax.faces.component.UIComponent component, boolean toggleMode)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGroupRendererBase
encodeBegin, encodeChildren, getRendersChildren
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TogglePanelRenderer

public TogglePanelRenderer()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Overrides:
encodeEnd in class HtmlGroupRendererBase
Throws:
java.io.IOException

hasStyleAttribute

public static boolean hasStyleAttribute(javax.faces.component.UIComponent component)

setComponentVisibility

public static void setComponentVisibility(javax.faces.component.UIComponent component,
                                          boolean toggleMode)

isHiddenWhenToggled

public static boolean isHiddenWhenToggled(javax.faces.component.UIComponent component)

getToggleJavascriptFunctionName

public static java.lang.String getToggleJavascriptFunctionName(javax.faces.context.FacesContext context,
                                                               TogglePanel togglePanel)

addToggleLinkJavascript

public void addToggleLinkJavascript(javax.faces.context.FacesContext context)
                             throws java.io.IOException
Throws:
java.io.IOException


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