org.apache.myfaces.custom.panelstack

Class HtmlPanelStack

public class HtmlPanelStack extends 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 18:14:23 +0200 (Wed, 11 May 2005) $

Author: Oliver Rossmueller

Field Summary
static StringCOMPONENT_FAMILY
static StringCOMPONENT_TYPE
Constructor Summary
HtmlPanelStack()
Method Summary
StringgetFamily()
StringgetSelectedPanel()
voidrestoreState(FacesContext context, Object state)
ObjectsaveState(FacesContext context)
voidsetSelectedPanel(String selectedPanel)

Field Detail

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY

COMPONENT_TYPE

public static final String COMPONENT_TYPE

Constructor Detail

HtmlPanelStack

public HtmlPanelStack()

Method Detail

getFamily

public String getFamily()

getSelectedPanel

public String getSelectedPanel()

restoreState

public void restoreState(FacesContext context, Object state)

saveState

public Object saveState(FacesContext context)

setSelectedPanel

public void setSelectedPanel(String selectedPanel)