javax.faces.component

Class UIComponentBase

Implemented Interfaces:
StateHolder
Known Direct Subclasses:
UIColumn, UICommand, UIData, UIForm, UIGraphic, UIMessage, UIMessages, UINamingContainer, UIOutput, UIPanel, UIParameter, UISelectItem, UISelectItems, UIViewRoot

public abstract class UIComponentBase
extends UIComponent

see Javadoc of JSF Specification
Version:
$Revision: 265611 $ $Date: 2005-09-01 03:05:16 +0200 (Thu, 01 Sep 2005) $
Author:
Manfred Geiler (latest modification by $Author: oros $)

Constructor Summary

UIComponentBase()

Method Summary

protected void
addFacesListener(FacesListener listener)
void
broadcast(FacesEvent event)
void
decode(FacesContext context)
void
encodeBegin(FacesContext context)
void
encodeChildren(FacesContext context)
void
encodeEnd(FacesContext context)
UIComponent
findComponent(String expr)
Map
getAttributes()
int
getChildCount()
List
getChildren()
String
getClientId(FacesContext context)
protected FacesContext
getFacesContext()
protected FacesListener[]
getFacesListeners(Class clazz)
UIComponent
getFacet(String name)
Map
getFacets()
Iterator
getFacetsAndChildren()
String
getId()
UIComponent
getParent()
protected Renderer
getRenderer(FacesContext context)
String
getRendererType()
boolean
getRendersChildren()
ValueBinding
getValueBinding(String name)
boolean
isRendered()
boolean
isTransient()
void
processDecodes(FacesContext context)
void
processRestoreState(FacesContext context, Object state)
Object
processSaveState(FacesContext context)
void
processUpdates(FacesContext context)
void
processValidators(FacesContext context)
void
queueEvent(FacesEvent event)
protected void
removeFacesListener(FacesListener listener)
static Object
restoreAttachedState(FacesContext context, Object stateObj)
void
restoreState(FacesContext context, Object state)
static Object
saveAttachedState(FacesContext context, Object attachedObject)
Object
saveState(FacesContext context)
void
setId(String id)
void
setParent(UIComponent parent)
void
setRendered(boolean rendered)
void
setRendererType(String rendererType)
void
setTransient(boolean transientFlag)
void
setValueBinding(String name, ValueBinding binding)

Methods inherited from class javax.faces.component.UIComponent

addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getFamily, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, setId, setParent, setRendered, setRendererType, setValueBinding

Constructor Details

UIComponentBase

public UIComponentBase()

Method Details

addFacesListener

protected void addFacesListener(FacesListener listener)
Overrides:
addFacesListener in interface UIComponent

broadcast

public void broadcast(FacesEvent event)
            throws AbortProcessingException
Overrides:
broadcast in interface UIComponent

decode

public void decode(FacesContext context)
Overrides:
decode in interface UIComponent

encodeBegin

public void encodeBegin(FacesContext context)
            throws IOException
Overrides:
encodeBegin in interface UIComponent

encodeChildren

public void encodeChildren(FacesContext context)
            throws IOException
Overrides:
encodeChildren in interface UIComponent

encodeEnd

public void encodeEnd(FacesContext context)
            throws IOException
Overrides:
encodeEnd in interface UIComponent

findComponent

public UIComponent findComponent(String expr)
Parameters:
expr -
Returns:
UIComponent

getAttributes

public Map getAttributes()
Overrides:
getAttributes in interface UIComponent

getChildCount

public int getChildCount()
Overrides:
getChildCount in interface UIComponent

getChildren

public List getChildren()
Overrides:
getChildren in interface UIComponent

getClientId

public String getClientId(FacesContext context)
Overrides:
getClientId in interface UIComponent
Parameters:
context -
Returns:
String

getFacesContext

protected FacesContext getFacesContext()
Overrides:
getFacesContext in interface UIComponent

getFacesListeners

protected FacesListener[] getFacesListeners(Class clazz)

getFacet

public UIComponent getFacet(String name)

getFacets

public Map getFacets()
Overrides:
getFacets in interface UIComponent

getFacetsAndChildren

public Iterator getFacetsAndChildren()
Overrides:
getFacetsAndChildren in interface UIComponent

getId

public String getId()
Overrides:
getId in interface UIComponent

getParent

public UIComponent getParent()
Overrides:
getParent in interface UIComponent

getRenderer

protected Renderer getRenderer(FacesContext context)
Overrides:
getRenderer in interface UIComponent

getRendererType

public String getRendererType()
Overrides:
getRendererType in interface UIComponent

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in interface UIComponent

getValueBinding

public ValueBinding getValueBinding(String name)

isRendered

public boolean isRendered()
Overrides:
isRendered in interface UIComponent

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder

processDecodes

public void processDecodes(FacesContext context)
Overrides:
processDecodes in interface UIComponent

processRestoreState

public void processRestoreState(FacesContext context,
                                Object state)

processSaveState

public Object processSaveState(FacesContext context)
Overrides:
processSaveState in interface UIComponent

processUpdates

public void processUpdates(FacesContext context)
Overrides:
processUpdates in interface UIComponent

processValidators

public void processValidators(FacesContext context)
Overrides:
processValidators in interface UIComponent

queueEvent

public void queueEvent(FacesEvent event)
Overrides:
queueEvent in interface UIComponent

removeFacesListener

protected void removeFacesListener(FacesListener listener)
Overrides:
removeFacesListener in interface UIComponent

restoreAttachedState

public static Object restoreAttachedState(FacesContext context,
                                          Object stateObj)
            throws IllegalStateException

restoreState

public void restoreState(FacesContext context,
                         Object state)

saveAttachedState

public static Object saveAttachedState(FacesContext context,
                                       Object attachedObject)

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder

setId

public void setId(String id)

setParent

public void setParent(UIComponent parent)
Overrides:
setParent in interface UIComponent

setRendered

public void setRendered(boolean rendered)
Overrides:
setRendered in interface UIComponent

setRendererType

public void setRendererType(String rendererType)

setTransient

public void setTransient(boolean transientFlag)
Specified by:
setTransient in interface StateHolder

setValueBinding

public void setValueBinding(String name,
                            ValueBinding binding)