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 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGroupRendererBase


Constructor Summary
TogglePanelRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
static String getToggleJavascriptFunctionName(javax.faces.context.FacesContext context, org.apache.myfaces.custom.toggle.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, 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
 

Constructor Detail

TogglePanelRenderer

public TogglePanelRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws IOException
Overrides:
encodeEnd in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGroupRendererBase
Throws:
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 String getToggleJavascriptFunctionName(javax.faces.context.FacesContext context,
                                                     org.apache.myfaces.custom.toggle.TogglePanel togglePanel)


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