org.apache.myfaces.custom.panelstack
Class HtmlPanelStack

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIPanel
              extended byjavax.faces.component.html.HtmlPanelGroup
                  extended byorg.apache.myfaces.custom.panelstack.HtmlPanelStack
All Implemented Interfaces:
javax.faces.component.StateHolder

public class HtmlPanelStack
extends javax.faces.component.html.HtmlPanelGroup

Manage a stack of JSF components and allow for one child component to be choosen for rendering. The behaviour is similar to the CardLayout of Java Swing. Property selectedPanel defines the id of the child to be rendered. If no child panel is selected or if the selected panel can not be found the first child is rendered.

Version:
$Revision: 169651 $ $Date: 2005-05-11 12:14:23 -0400 (Wed, 11 May 2005) $
Author:
Oliver Rossmueller

Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Constructor Summary
HtmlPanelStack()
           
 
Method Summary
 java.lang.String getFamily()
           
 java.lang.String getSelectedPanel()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setSelectedPanel(java.lang.String selectedPanel)
           
 
Methods inherited from class javax.faces.component.html.HtmlPanelGroup
getStyle, getStyleClass, setStyle, setStyleClass
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

HtmlPanelStack

public HtmlPanelStack()
Method Detail

getFamily

public java.lang.String getFamily()

setSelectedPanel

public void setSelectedPanel(java.lang.String selectedPanel)

getSelectedPanel

public java.lang.String getSelectedPanel()

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)