org.apache.myfaces.commons.renderOne
Class UIRenderOne

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.commons.renderOne.AbstractUIRenderOne
              extended by org.apache.myfaces.commons.renderOne.UIRenderOne
All Implemented Interfaces:
javax.faces.component.StateHolder

public class UIRenderOne
extends AbstractUIRenderOne


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Constructor Summary
UIRenderOne()
           
 
Method Summary
 java.lang.String getFamily()
           
 java.lang.String getType()
          The filter type: first|index.
 java.lang.Integer getValue()
          The value valid for the type.
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setType(java.lang.String type)
           
 void setValue(java.lang.Integer value)
           
 
Methods inherited from class org.apache.myfaces.commons.renderOne.AbstractUIRenderOne
encodeChildren, getRendersChildren, selectFirstChildByIndex, selectFirstChildOnly, selectOneChild
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, 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
 

Field Detail

COMPONENT_FAMILY

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

COMPONENT_TYPE

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

UIRenderOne

public UIRenderOne()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getType

public java.lang.String getType()
Description copied from class: AbstractUIRenderOne
The filter type: first|index. first: the first list value should evaluate to a Number or a value that can be parsed into an integer. index: A collection, array or comma-separated list of numbers. (Default: "first")

Specified by:
getType in class AbstractUIRenderOne
Returns:
the type

setType

public void setType(java.lang.String type)
Specified by:
setType in class AbstractUIRenderOne
Parameters:
type - the type to set

getValue

public java.lang.Integer getValue()
Description copied from class: AbstractUIRenderOne
The value valid for the type. If this evaluates to null, the first child will be rendered. If the type is "first", this value will be ignored, as "first" always renders the first rendered item. If the type is "index", the value must be a number.

Specified by:
getValue in class AbstractUIRenderOne
Returns:
the value

setValue

public void setValue(java.lang.Integer value)
Specified by:
setValue in class AbstractUIRenderOne
Parameters:
value - the value to set

saveState

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

restoreState

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


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.