org.rhq.enterprise.gui.common.tabbar
Class TabBarComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.rhq.enterprise.gui.common.tabbar.TabBarComponent
All Implemented Interfaces:
javax.faces.component.StateHolder

public class TabBarComponent
extends javax.faces.component.UIComponentBase

A component that represents a tab bar containing tabs, and optionally subtabs.

Author:
Ian Springer

Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
TabBarComponent()
           
 
Method Summary
 String getFamily()
           
 Map<String,String> getParameters()
           
 TabComponent getSelectedTab()
           
 String getSelectedTabName()
           
 TabComponent getTabByName(String tabName)
           
 List<TabComponent> getTabs()
           
 void restoreState(javax.faces.context.FacesContext context, Object stateValues)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void selectTab(String fullTabName)
           
 void setParameters(Map<String,String> parameters)
           
 void setSelectedTabName(String selectedTabName)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
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, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

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

TabBarComponent

public TabBarComponent()
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getSelectedTabName

public String getSelectedTabName()

setSelectedTabName

public void setSelectedTabName(String selectedTabName)

getParameters

@NotNull
public Map<String,String> getParameters()

setParameters

public void setParameters(@NotNull
                          Map<String,String> parameters)

selectTab

public void selectTab(@NotNull
                      String fullTabName)

getTabs

@NotNull
public List<TabComponent> getTabs()

getTabByName

@Nullable
public TabComponent getTabByName(String tabName)

getSelectedTab

@NotNull
public TabComponent getSelectedTab()

saveState

public Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         Object stateValues)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.