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

TODO: PartialStateSaving and pluginize this component!


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 encodeChildren(FacesContext faces)
           
 String getContainerClientId(FacesContext faces)
           
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 restoreState(FacesContext faces, Object object)
           
 Object saveState(FacesContext faces)
           
 void setOffset(int offset)
           
 void setSize(int size)
           
 void setStep(int step)
           
 void setValue(Object value)
           
 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, encodeBegin, 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, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, 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
public String getVar()

setVar

public void setVar(String var)

getVarStatus

@JSFProperty
public String getVarStatus()

setVarStatus

public void setVarStatus(String varStatus)

getValue

@JSFProperty
public Object getValue()

setValue

public void setValue(Object value)

getContainerClientId

public String getContainerClientId(FacesContext faces)
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

restoreState

public void restoreState(FacesContext faces,
                         Object object)
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class UIComponentBase

saveState

public Object saveState(FacesContext faces)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIComponentBase

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 © 2012 The Apache Software Foundation. All Rights Reserved.