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 String
COMPONENT_FAMILY
static String
COMPONENT_TYPE

Constructor Summary

HtmlPanelStack()

Method Summary

String
getFamily()
String
getSelectedPanel()
void
restoreState(FacesContext context, Object state)
Object
saveState(FacesContext context)
void
setSelectedPanel(String selectedPanel)

Field Details

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY

COMPONENT_TYPE

public static final String COMPONENT_TYPE

Constructor Details

HtmlPanelStack

public HtmlPanelStack()

Method Details

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)