org.apache.myfaces.trinidadinternal.renderkit.html.layout
Class CorePanelAccordionRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase
          extended by org.apache.myfaces.trinidadinternal.renderkit.html.layout.CorePanelAccordionRenderer

public class CorePanelAccordionRenderer
extends UINodeRendererBase

Renderer for PanelAccordion

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/html/layout/CoreShowOneAccordionRenderer.java#0 $) $Date: 10-nov-2005.19:01:13 $
Author:
The Oracle ADF Faces Team

Constructor Summary
CorePanelAccordionRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          If nothing is disclosed, makes the first child disclosed.
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Renders a vertical panel bar and children in individual panels.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Dummy method to prevent base class call.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase
getRenderingContext, getRenderingContext, getRendersChildren, skipDecode
 
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

CorePanelAccordionRenderer

public CorePanelAccordionRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
If nothing is disclosed, makes the first child disclosed. Makes sure that the child being disclosed has rendered = true and is not disabled.

Overrides:
encodeBegin in class UINodeRendererBase
Parameters:
context - the faces context object
component - the UIComponent object
Throws:
java.io.IOException - when some issues while writing output

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Renders a vertical panel bar and children in individual panels. For the panel bar, draws a DIV that forms the outline of panels. Within the DIV, iteratively calls the encodeBegin, encodeChildren and encodeEnd on the panel children (if they have rendered and disclosed set to true). Non UIXShowDetail children are ignored. The title of each of the panels is the same as the text assigned to UIXShowDetail child. When text attribute is not specified, title remains blank.

Overrides:
encodeChildren in class UINodeRendererBase
Parameters:
context - the faces context object
component - the UIComponent object
Throws:
java.io.IOException - when some issues while writing output

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Dummy method to prevent base class call.

Overrides:
encodeEnd in class UINodeRendererBase
Parameters:
context - the faces context object
component - the UIComponent object
Throws:
java.io.IOException - when some issues while writing output


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.