com.sun.rave.web.ui.component
Class TabBase

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by com.sun.rave.web.ui.component.HyperlinkBase
                  extended by com.sun.rave.web.ui.component.Hyperlink
                      extended by com.sun.rave.web.ui.component.TabBase
All Implemented Interfaces:
ComplexComponent, javax.faces.component.ActionSource, javax.faces.component.ActionSource2, javax.faces.component.StateHolder
Direct Known Subclasses:
Tab

public abstract class TabBase
extends Hyperlink

The tab tag is used for inserting a Tab component into a TabSet. The tab tag simply extends ui:hyperlink differing only in the value rendered by default for the class attriubte

HTML Elements and Layout

The tab tag will render an XHTML anchor tag. Its output is identical to that of ui:hyperlink except for the value of the class attribute

Client Side Javascript Functions

none.

Examples

Please see the tabSet tlddoc for an example of defining tabs via a TabSet component binding

Define three tabs as part of a TabSet

<ui:tabSet id="MyTabs" selected="tab1" >
     <ui:tab id="tab1" text="Tab 1" action="#{TabSetBean.tab1Clicked}" />
     <ui:tab id="tab2" text="Tab 2" action="#{TabSetBean.tab2Clicked}" />
     <ui:tab id="tab3" text="Tab 3" action="#{TabSetBean.tab3Clicked}" />
</ui:tabSet >

Auto-generated component class. Do NOT modify; all changes will be lost!


Field Summary
 
Fields inherited from class javax.faces.component.UICommand
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
TabBase()
          Construct a new TabBase.
 
Method Summary
 java.lang.String getFamily()
          Return the identifier of the component family to which this component belongs.
 java.lang.String getSelectedChildId()
          The id of this tab's currently selected Tab child or null if one is not selected.
 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 setSelectedChildId(java.lang.String selectedChildId)
          The id of this tab's currently selected Tab child or null if one is not selected.
 
Methods inherited from class com.sun.rave.web.ui.component.Hyperlink
getPrimaryElementID, toString
 
Methods inherited from class com.sun.rave.web.ui.component.HyperlinkBase
getAction, getActionListener, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getShape, getStyle, getStyleClass, getTabIndex, getTarget, getText, getToolTip, getType, getUrl, getUrlLang, getValueBinding, isDisabled, isVisible, setAction, setActionListener, setDisabled, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setShape, setStyle, setStyleClass, setTabIndex, setTarget, setText, setToolTip, setType, setUrl, setUrlLang, setValueBinding, setVisible
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getActionExpression, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setActionExpression, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabBase

public TabBase()

Construct a new TabBase.

Method Detail

getFamily

public java.lang.String getFamily()

Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance.

Overrides:
getFamily in class HyperlinkBase

getSelectedChildId

public java.lang.String getSelectedChildId()

The id of this tab's currently selected Tab child or null if one is not selected.


setSelectedChildId

public void setSelectedChildId(java.lang.String selectedChildId)

The id of this tab's currently selected Tab child or null if one is not selected.

See Also:
getSelectedChildId()

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 HyperlinkBase

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 HyperlinkBase