com.ibm.xsp.component
Class UIRepeatContainer

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIPanel
              extended by com.ibm.xsp.component.UIDataPanelBase
                  extended by com.ibm.xsp.component.UIRepeatContainer
All Implemented Interfaces:
FacesComponent, FacesDataProvider, FacesRowIndex, javax.faces.component.NamingContainer, javax.faces.component.StateHolder

public class UIRepeatContainer
extends UIDataPanelBase
implements javax.faces.component.NamingContainer, FacesRowIndex

This Class is used directly by the UIRepeat Component class and should not be used independently. It represents one collection of repeated components. Not intended to be subclassed.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.faces.component.UIComponentBase
javax.faces.component.UIComponentBase.AggregatedIterator, javax.faces.component.UIComponentBase.UnmodifiableIterator
 
Nested classes/interfaces inherited from class javax.faces.component.UIComponent
javax.faces.component.UIComponent.StateMap, javax.faces.component.UIComponent.StateMapEntry
 
Field Summary
static java.lang.String COMPONENT_TYPE
           
static java.lang.String RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIPanel
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponentBase
EMPTY_ITERATOR
 
Fields inherited from class javax.faces.component.UIComponent
_xspStateId
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Fields inherited from interface com.ibm.xsp.component.FacesDataProvider
DATA, DATA_CONTEXTS
 
Constructor Summary
  UIRepeatContainer()
          Zero-arg constructor required for restoring view.
protected UIRepeatContainer(java.lang.String indexVar, int rowIndex, java.lang.String dataVar)
          Create a new UIRepeatContainer instance with specified property values.
 
Method Summary
 void buildContents(javax.faces.context.FacesContext context, FacesComponentBuilder builder)
          Build the component children and facets, the default implementation is usually:
builder.buildAll(context, this, true); // includeFacets=true
 java.lang.String getClientId(javax.faces.context.FacesContext context)
           
 java.util.List<DataContext> getDataContexts()
          Returns the list of data context objects.
 java.lang.String getFamily()
           
 java.lang.Object getRowData()
           
 int getRowIndex()
           
protected  boolean isAllowCreateViewPublish(javax.faces.context.FacesContext context)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setParent(javax.faces.component.UIComponent component)
           
 
Methods inherited from class com.ibm.xsp.component.UIDataPanelBase
_xspCleanTransientData, addData, addDataContext, afterEncoding, beforeEncoding, broadcast, encodeBegin, encodeEnd, getAcl, getData, hasUserAccess, initAfterContents, initBeforeContents, invokeOnComponent, isReadonly, isRendered, processDecodes, processUpdates, processValidators, publishControlData, queueEvent, revokeControlData, setAcl, setReadonly, visitTree
 
Methods inherited from class javax.faces.component.UIComponentBase
_xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
_xspGetStateId, _xspGetStateMap, _xspRestoreAttribute, _xspRestoreState, _xspSaveState, isVisitable, markInitialState, setControlState
 
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 java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

RENDERER_TYPE

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

UIRepeatContainer

protected UIRepeatContainer(java.lang.String indexVar,
                            int rowIndex,
                            java.lang.String dataVar)
Create a new UIRepeatContainer instance with specified property values.


UIRepeatContainer

public UIRepeatContainer()
Zero-arg constructor required for restoring view. If this constructor is used, state must be restored via restoreState

Method Detail

getClientId

public java.lang.String getClientId(javax.faces.context.FacesContext context)
Overrides:
getClientId in class javax.faces.component.UIComponentBase

getDataContexts

public java.util.List<DataContext> getDataContexts()
Description copied from class: UIDataPanelBase
Returns the list of data context objects.

Specified by:
getDataContexts in interface FacesDataProvider
Overrides:
getDataContexts in class UIDataPanelBase
Returns:
The list of data context objects.

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIPanel

getRowIndex

public int getRowIndex()
Specified by:
getRowIndex in interface FacesRowIndex
Returns:
Returns the rowIndex.

getRowData

public java.lang.Object getRowData()
Returns:
Returns the rowData.

saveState

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

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 UIDataPanelBase

setParent

public void setParent(javax.faces.component.UIComponent component)
Overrides:
setParent in class javax.faces.component.UIComponentBase

isAllowCreateViewPublish

protected boolean isAllowCreateViewPublish(javax.faces.context.FacesContext context)
Overrides:
isAllowCreateViewPublish in class UIDataPanelBase
Returns:
See Also:
DataPublisher.isAllowCreateViewPublish(javax.faces.component.UIComponent)

buildContents

public void buildContents(javax.faces.context.FacesContext context,
                          FacesComponentBuilder builder)
                   throws javax.faces.FacesException
Description copied from interface: FacesComponent
Build the component children and facets, the default implementation is usually:
builder.buildAll(context, this, true); // includeFacets=true

Specified by:
buildContents in interface FacesComponent
Overrides:
buildContents in class UIDataPanelBase
Throws:
javax.faces.FacesException