Class UIRepeat
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- org.apache.myfaces.view.facelets.component.UIRepeat
-
- All Implemented Interfaces:
EventListener,NamingContainer,PartialStateHolder,StateHolder,TransientStateHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder
@JSFComponent(name="ui:repeat", defaultRendererType="facelets.ui.Repeat") public class UIRepeat extends UIComponentBase implements NamingContainer
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENT_FAMILYstatic StringCOMPONENT_TYPE-
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
-
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
-
-
Constructor Summary
Constructors Constructor Description UIRepeat()
-
Method Summary
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeAll, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
-
Methods inherited from class javax.faces.component.UIComponent
getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
-
-
-
-
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
-
-
Method Detail
-
getFamily
public String getFamily()
- Specified by:
getFamilyin classUIComponent
-
getOffset
@JSFProperty public int getOffset()
-
setOffset
public void setOffset(int offset)
-
getSize
@JSFProperty public int getSize()
-
setSize
public void setSize(int size)
-
getStep
@JSFProperty public int getStep()
-
setStep
public void setStep(int step)
-
getBegin
@JSFProperty public int getBegin()
-
setBegin
public void setBegin(int begin)
-
getEnd
@JSFProperty public int getEnd()
-
setEnd
public void setEnd(int end)
-
getVar
@JSFProperty(literalOnly=true) public String getVar()
-
setVar
public void setVar(String var)
-
getVarStatus
@JSFProperty(literalOnly=true) public String getVarStatus()
-
setVarStatus
public void setVarStatus(String varStatus)
-
getDataModel
protected DataModel getDataModel()
-
setValueExpression
public void setValueExpression(String name, javax.el.ValueExpression binding)
- Overrides:
setValueExpressionin classUIComponent
-
getValue
@JSFProperty public Object getValue()
-
setValue
public void setValue(Object value)
-
getContainerClientId
public String getContainerClientId(FacesContext context)
- Overrides:
getContainerClientIdin classUIComponent
-
getRowCount
public int getRowCount()
Returns the rowCount of the underlying DataModel.- Returns:
-
getIndex
public int getIndex()
- Returns:
- the current index.
-
setRowIndex
public void setRowIndex(int index)
-
process
public void process(FacesContext faces, PhaseId phase)
-
invokeOnComponent
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException
- Overrides:
invokeOnComponentin classUIComponentBase- Throws:
FacesException
-
getFacesContext
protected FacesContext getFacesContext()
- Overrides:
getFacesContextin classUIComponentBase
-
visitTree
public boolean visitTree(VisitContext context, VisitCallback callback)
- Overrides:
visitTreein classUIComponentBase
-
processDecodes
public void processDecodes(FacesContext faces)
- Overrides:
processDecodesin classUIComponentBase
-
processUpdates
public void processUpdates(FacesContext faces)
- Overrides:
processUpdatesin classUIComponentBase
-
processValidators
public void processValidators(FacesContext faces)
- Overrides:
processValidatorsin classUIComponentBase
-
broadcast
public void broadcast(FacesEvent event) throws AbortProcessingException
- Overrides:
broadcastin classUIComponentBase- Throws:
AbortProcessingException
-
queueEvent
public void queueEvent(FacesEvent event)
- Overrides:
queueEventin classUIComponentBase
-
restoreState
public void restoreState(FacesContext context, Object state)
- Specified by:
restoreStatein interfaceStateHolder- Overrides:
restoreStatein classUIComponentBase
-
saveState
public Object saveState(FacesContext context)
- Specified by:
saveStatein interfaceStateHolder- Overrides:
saveStatein classUIComponentBase
-
encodeBegin
public void encodeBegin(FacesContext context) throws IOException
- Overrides:
encodeBeginin classUIComponentBase- Throws:
IOException
-
encodeChildren
public void encodeChildren(FacesContext faces) throws IOException
- Overrides:
encodeChildrenin classUIComponentBase- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildrenin classUIComponentBase
-
-