com.sun.webui.jsf.component
Class AccordionTab

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.sun.webui.jsf.component.WebuiComponent
              extended by com.sun.webui.jsf.component.TabContent
                  extended by com.sun.webui.jsf.component.AccordionTab
All Implemented Interfaces:
javax.faces.component.NamingContainer, javax.faces.component.StateHolder

public class AccordionTab
extends TabContent

An accordion tab component. It extends the generic tabContent The AccordionTab component represents one tab in the accordion. AccordionTab components must be children of Accordion components. Each AccordionTab has a title and some content. The content can be an aribitrary set of components or some XHTML markup or both. The component would go through the usual JSF lifecycle when the Accordion is refreshed, the component itself is refreshed or the page containing the Accordion (hence, the component) is submitted.


Field Summary
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
AccordionTab()
          Create a new AccordionTab.
 
Method Summary
 java.lang.String getContentHeight()
          Return the content height for this tab.
 java.lang.String getFamily()
          Return the family for this component.
 java.lang.String getFocusId()
          Return the client ID of the first element to focus on in the accordionTab's content area.
 java.lang.String getRendererType()
          Return the renderer type associated with this component.
 boolean isMultipleSelect()
          Returns true if multiple tabs can be selected, false otherwise.
 void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
          Restore the state of this component.
 java.lang.Object saveState(javax.faces.context.FacesContext _context)
          Save the state of this component.
 void setContentHeight(java.lang.String contentHeight)
          Set the content height for this tab.
 void setFocusId(java.lang.String focusId)
          Set the client ID of the first element to focus on for the accordionTab.
 void setMultipleSelect(boolean multipleSelect)
          Set to true if multiple tabs can be selected.
 
Methods inherited from class com.sun.webui.jsf.component.TabContent
getHtmlTemplate, getStyle, getStyleClass, getTabChildCount, getTabChildren, getTabContainer, getTitle, isSelected, isVisible, setHtmlTemplate, setSelected, setSelectedTab, setStyle, setStyleClass, setTitle, setVisible
 
Methods inherited from class com.sun.webui.jsf.component.WebuiComponent
processDecodes, processUpdates, processValidators, setId, setRendered
 
Methods inherited from class javax.faces.component.UIComponentBase
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding, setValueExpression
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccordionTab

public AccordionTab()
Create a new AccordionTab.

Method Detail

getFamily

public java.lang.String getFamily()

Return the family for this component.

Overrides:
getFamily in class TabContent

getRendererType

public java.lang.String getRendererType()

Return the renderer type associated with this component.

Overrides:
getRendererType in class TabContent

getFocusId

public java.lang.String getFocusId()
Return the client ID of the first element to focus on in the accordionTab's content area.


setFocusId

public void setFocusId(java.lang.String focusId)
Set the client ID of the first element to focus on for the accordionTab.


getContentHeight

public java.lang.String getContentHeight()
Return the content height for this tab.


setContentHeight

public void setContentHeight(java.lang.String contentHeight)
Set the content height for this tab.


isMultipleSelect

public boolean isMultipleSelect()
Returns true if multiple tabs can be selected, false otherwise. This value is false by default.


setMultipleSelect

public void setMultipleSelect(boolean multipleSelect)
Set to true if multiple tabs can be selected.


restoreState

public void restoreState(javax.faces.context.FacesContext _context,
                         java.lang.Object _state)
Restore the state of this component.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class TabContent

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext _context)
Save the state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class TabContent


Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.