org.apache.myfaces.tobago.component
Class UITabGroup

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIPanel
              extended by org.apache.myfaces.tobago.component.UIPanelBase
                  extended by org.apache.myfaces.tobago.component.UITabGroup
All Implemented Interfaces:
StateHolder, AjaxComponent, TabChangeSource

public class UITabGroup
extends UIPanelBase
implements TabChangeSource, AjaxComponent


Field Summary
static java.lang.String COMPONENT_TYPE
           
static java.lang.String SWITCH_TYPE_CLIENT
           
static java.lang.String SWITCH_TYPE_RELOAD_PAGE
           
static java.lang.String SWITCH_TYPE_RELOAD_TAB
           
 
Fields inherited from class javax.faces.component.UIPanel
COMPONENT_FAMILY
 
Constructor Summary
UITabGroup()
           
 
Method Summary
 void addTabChangeListener(TabChangeListener listener)
           
 void broadcast(FacesEvent facesEvent)
           
 void encodeAjax(FacesContext facesContext)
           
 void encodeBegin(FacesContext facesContext)
           
 void encodeChildren(FacesContext context)
           
 void encodeEnd(FacesContext facesContext)
           
 UIPanelBase getActiveTab()
           
 int getRenderedIndex()
           
 boolean getRendersChildren()
           
 int getSelectedIndex()
           
 java.lang.String getSwitchType()
           
 MethodBinding getTabChangeListener()
           
 TabChangeListener[] getTabChangeListeners()
           
 UIPanelBase[] getTabs()
           
 boolean isImmediate()
           
 boolean isShowNavigationBar()
           
 void processDecodes(FacesContext context)
           
 void processUpdates(FacesContext context)
           
 void processValidators(FacesContext context)
           
 void queueEvent(FacesEvent event)
           
 void removeTabChangeListener(TabChangeListener listener)
           
 void restoreState(FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(FacesContext context)
           
 void setImmediate(boolean immediate)
           
 void setSelectedIndex(int selectedIndex)
           
 void setShowNavigationBar(boolean showNavigationBar)
           
 void setSwitchType(java.lang.String switchType)
           
 void setTabChangeListener(MethodBinding tabStateChangeListener)
           
 
Methods inherited from class org.apache.myfaces.tobago.component.UIPanelBase
processAjax
 
Methods inherited from class javax.faces.component.UIPanel
getFamily
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.tobago.ajax.api.AjaxComponent
processAjax
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

SWITCH_TYPE_CLIENT

public static final java.lang.String SWITCH_TYPE_CLIENT
See Also:
Constant Field Values

SWITCH_TYPE_RELOAD_PAGE

public static final java.lang.String SWITCH_TYPE_RELOAD_PAGE
See Also:
Constant Field Values

SWITCH_TYPE_RELOAD_TAB

public static final java.lang.String SWITCH_TYPE_RELOAD_TAB
See Also:
Constant Field Values
Constructor Detail

UITabGroup

public UITabGroup()
Method Detail

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class UIComponentBase

encodeBegin

public void encodeBegin(FacesContext facesContext)
                 throws java.io.IOException
Overrides:
encodeBegin in class UIPanelBase
Throws:
java.io.IOException

setImmediate

public void setImmediate(boolean immediate)

isImmediate

public boolean isImmediate()

isShowNavigationBar

public boolean isShowNavigationBar()

setShowNavigationBar

public void setShowNavigationBar(boolean showNavigationBar)

queueEvent

public void queueEvent(FacesEvent event)
Overrides:
queueEvent in class UIComponentBase

encodeChildren

public void encodeChildren(FacesContext context)
                    throws java.io.IOException
Overrides:
encodeChildren in class UIPanelBase
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(FacesContext facesContext)
               throws java.io.IOException
Overrides:
encodeEnd in class UIComponentBase
Throws:
java.io.IOException

getTabs

public UIPanelBase[] getTabs()

getActiveTab

public UIPanelBase getActiveTab()

processDecodes

public void processDecodes(FacesContext context)
Overrides:
processDecodes in class UIComponentBase

processValidators

public void processValidators(FacesContext context)
Overrides:
processValidators in class UIComponentBase

processUpdates

public void processUpdates(FacesContext context)
Overrides:
processUpdates in class UIComponentBase

broadcast

public void broadcast(FacesEvent facesEvent)
               throws AbortProcessingException
Overrides:
broadcast in class UIComponentBase
Throws:
AbortProcessingException

setTabChangeListener

public void setTabChangeListener(MethodBinding tabStateChangeListener)
Specified by:
setTabChangeListener in interface TabChangeSource

getTabChangeListener

public MethodBinding getTabChangeListener()
Specified by:
getTabChangeListener in interface TabChangeSource

addTabChangeListener

public void addTabChangeListener(TabChangeListener listener)
Specified by:
addTabChangeListener in interface TabChangeSource

removeTabChangeListener

public void removeTabChangeListener(TabChangeListener listener)
Specified by:
removeTabChangeListener in interface TabChangeSource

getTabChangeListeners

public TabChangeListener[] getTabChangeListeners()
Specified by:
getTabChangeListeners in interface TabChangeSource

saveState

public java.lang.Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIComponentBase

restoreState

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

encodeAjax

public void encodeAjax(FacesContext facesContext)
                throws java.io.IOException
Specified by:
encodeAjax in interface AjaxComponent
Overrides:
encodeAjax in class UIPanelBase
Throws:
java.io.IOException

getSelectedIndex

public int getSelectedIndex()

setSelectedIndex

public void setSelectedIndex(int selectedIndex)

getRenderedIndex

public int getRenderedIndex()

getSwitchType

public java.lang.String getSwitchType()

setSwitchType

public void setSwitchType(java.lang.String switchType)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.