org.apache.myfaces.view.facelets.component
Class UIRepeat

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by 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
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, 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
UIRepeat()
           
 
Method Summary
 void broadcast(FacesEvent event)
           
 void encodeBegin(FacesContext context)
           
 void encodeChildren(FacesContext faces)
           
 String getContainerClientId(FacesContext context)
           
protected  DataModel getDataModel()
           
protected  FacesContext getFacesContext()
           
 String getFamily()
           
 int getIndex()
          Returns the current index.
 int getOffset()
           
 boolean getRendersChildren()
           
 int getRowCount()
          Returns the rowCount of the underlying DataModel.
 int getSize()
           
 int getStep()
           
 Object getValue()
           
 String getVar()
           
 String getVarStatus()
           
 boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback)
           
 void process(FacesContext faces, PhaseId phase)
           
 void processDecodes(FacesContext faces)
           
 void processUpdates(FacesContext faces)
           
 void processValidators(FacesContext faces)
           
 void queueEvent(FacesEvent event)
           
 void setOffset(int offset)
           
 void setSize(int size)
           
 void setStep(int step)
           
 void setValue(Object value)
           
 void setValueExpression(String name, javax.el.ValueExpression binding)
           
 void setVar(String var)
           
 void setVarStatus(String varStatus)
           
 boolean visitTree(VisitContext context, VisitCallback callback)
           
 
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, getRenderer, getRendererType, getValueBinding, initialStateMarked, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
 
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

UIRepeat

public UIRepeat()
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class UIComponent

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)

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:
setValueExpression in class UIComponent

getValue

@JSFProperty
public Object getValue()

setValue

public void setValue(Object value)

getContainerClientId

public String getContainerClientId(FacesContext context)
Overrides:
getContainerClientId in class UIComponent

getRowCount

public int getRowCount()
Returns the rowCount of the underlying DataModel.

Returns:

getIndex

public int getIndex()
Returns the current index.


process

public void process(FacesContext faces,
                    PhaseId phase)

invokeOnComponent

public boolean invokeOnComponent(FacesContext context,
                                 String clientId,
                                 ContextCallback callback)
                          throws FacesException
Overrides:
invokeOnComponent in class UIComponentBase
Throws:
FacesException

getFacesContext

protected FacesContext getFacesContext()
Overrides:
getFacesContext in class UIComponentBase

visitTree

public boolean visitTree(VisitContext context,
                         VisitCallback callback)
Overrides:
visitTree in class UIComponentBase

processDecodes

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

processUpdates

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

processValidators

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

broadcast

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

queueEvent

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

encodeBegin

public void encodeBegin(FacesContext context)
                 throws IOException
Overrides:
encodeBegin in class UIComponentBase
Throws:
IOException

encodeChildren

public void encodeChildren(FacesContext faces)
                    throws IOException
Overrides:
encodeChildren in class UIComponentBase
Throws:
IOException

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class UIComponentBase


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.