com.infragistics.faces.tab.component.html
Class HtmlTabItem

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended bycom.infragistics.faces.tab.component.TabItem
                  extended bycom.infragistics.faces.tab.component.html.HtmlTabItem
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class HtmlTabItem
extends TabItem

The TabItem component provides the following functionalities:


Customizable Look and Feel
Background, color, border, font attributes and much more can be customized and applied to tabItems.

The table below summarizes which elements can be customized:

Style applied to How to customize it ?
TabItem - Default Style Using setStyle(String), setStyleClass(String)
TabItem content - Default Style Using setContentStyleClass(String).
TabItem - Hover Style Using setHoverStyleClass(String).
TabItem - Selected Style Using setSelectedStyleClass(String).


Facets

None


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String RENDERER_TYPE
           
 
Constructor Summary
HtmlTabItem()
           
 
Method Summary
 java.lang.String getContentStyleClass()
          Returns the name of the css class applied to the content area of the tab item
 java.lang.String getFamily()
           
 java.lang.String getHoverStyleClass()
          Returns the name of the css class applied to the component when the mouse is over it
 java.lang.String getSelectedStyleClass()
          Returns the name of the css class applied to the component whenever selected
 java.lang.String getStyle()
          Returns the default Style applied to the component
 java.lang.String getStyleClass()
          Returns the name of the css class applied to the component
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setContentStyleClass(java.lang.String contentClass)
          Sets the name of the css class applied to the content area of the tab item
 void setHoverStyleClass(java.lang.String hoverClass)
          Sets the name of the css class applied to the component when the mouse cursor is over it
 void setSelectedStyleClass(java.lang.String selectedClass)
          Sets the name of the css class applied to the component when selected
 void setStyle(java.lang.String style)
          Sets the default style applied to the component
 void setStyleClass(java.lang.String cssClass)
          Sets the name of the css class applied to the component
 
Methods inherited from class com.infragistics.faces.tab.component.TabItem
getTabView, isDisabled, isSelected, processDecodes, processUpdates, processValidators, setDisabled, setSelected
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_FAMILY

public static java.lang.String COMPONENT_FAMILY

COMPONENT_TYPE

public static java.lang.String COMPONENT_TYPE

RENDERER_TYPE

public static java.lang.String RENDERER_TYPE
Constructor Detail

HtmlTabItem

public HtmlTabItem()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class TabItem

getContentStyleClass

public java.lang.String getContentStyleClass()
Returns the name of the css class applied to the content area of the tab item

Returns:
the name of the hover class

getHoverStyleClass

public java.lang.String getHoverStyleClass()
Returns the name of the css class applied to the component when the mouse is over it

Returns:
the name of the hover class

getSelectedStyleClass

public java.lang.String getSelectedStyleClass()
Returns the name of the css class applied to the component whenever selected

Returns:
the name of the selected class

getStyle

public java.lang.String getStyle()
Returns the default Style applied to the component

Returns:
the style

getStyleClass

public java.lang.String getStyleClass()
Returns the name of the css class applied to the component

Returns:
the name of the css class

setContentStyleClass

public void setContentStyleClass(java.lang.String contentClass)
Sets the name of the css class applied to the content area of the tab item

Parameters:
contentClass -

setHoverStyleClass

public void setHoverStyleClass(java.lang.String hoverClass)
Sets the name of the css class applied to the component when the mouse cursor is over it

Parameters:
hoverClass -

setSelectedStyleClass

public void setSelectedStyleClass(java.lang.String selectedClass)
Sets the name of the css class applied to the component when selected

Parameters:
selectedClass -

setStyle

public void setStyle(java.lang.String style)
Sets the default style applied to the component

Parameters:
style -

setStyleClass

public void setStyleClass(java.lang.String cssClass)
Sets the name of the css class applied to the component

Parameters:
cssClass - : the name of the new css class

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class TabItem

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class TabItem