|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
public abstract class HtmlBasicRenderer
HtmlBasicRenderer is a base class for implementing renderers for HtmlBasicRenderKit.
Nested Class Summary | |
---|---|
static class |
HtmlBasicRenderer.Param
Simple class to encapsulate the name and value of a UIParameeter . |
Field Summary | |
---|---|
protected static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
HtmlBasicRenderer()
|
Method Summary | |
---|---|
void |
addGenericErrorMessage(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.String messageId,
java.lang.String param)
|
protected java.lang.String |
augmentIdReference(javax.faces.context.FacesContext context,
java.lang.String forValue,
javax.faces.component.UIComponent fromComponent)
Conditionally augment an id-reference value. |
java.lang.String |
convertClientId(javax.faces.context.FacesContext context,
java.lang.String clientId)
|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected void |
encodeRecursive(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render nested child components by invoking the encode methods on those components, but only when the rendered
property is true . |
protected java.util.Iterator<javax.faces.component.UIComponent> |
getChildren(javax.faces.component.UIComponent component)
Return an Iterator over the children of the specified component, selecting only those that have a rendered property of true . |
protected java.lang.String |
getCurrentValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Gets value to be rendered and formats it if required. |
protected void |
getEndTextToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String currentValue)
Renderers override this method to write appropriate HTML content into the buffer. |
protected javax.faces.component.UIComponent |
getFacet(javax.faces.component.UIComponent component,
java.lang.String name)
Return the specified facet from the specified component, but only if its rendered property is
set to true . |
protected javax.faces.component.UIComponent |
getForComponent(javax.faces.context.FacesContext context,
java.lang.String forComponent,
javax.faces.component.UIComponent component)
Locates the component identified by forComponent |
protected java.lang.String |
getFormattedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object currentValue)
Renderers override this method in case output value needs to be formatted |
protected java.util.Iterator |
getMessageIter(javax.faces.context.FacesContext context,
java.lang.String forComponent,
javax.faces.component.UIComponent component)
|
protected HtmlBasicRenderer.Param[] |
getParamList(javax.faces.component.UIComponent command)
|
boolean |
getRendersChildren()
|
protected java.lang.Object |
getValue(javax.faces.component.UIComponent component)
|
protected void |
setSubmittedValue(javax.faces.component.UIComponent component,
java.lang.Object value)
Renderers override this method to store the previous value of the associated component. |
protected boolean |
shouldWriteIdAttribute(javax.faces.component.UIComponent component)
|
protected java.lang.String |
writeIdAttributeIfNecessary(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
|
Methods inherited from class javax.faces.render.Renderer |
---|
encodeBegin, encodeChildren, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger logger
Constructor Detail |
---|
public HtmlBasicRenderer()
Method Detail |
---|
public void addGenericErrorMessage(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.String messageId, java.lang.String param)
public java.lang.String convertClientId(javax.faces.context.FacesContext context, java.lang.String clientId)
convertClientId
in class javax.faces.render.Renderer
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class javax.faces.render.Renderer
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeEnd
in class javax.faces.render.Renderer
java.io.IOException
public boolean getRendersChildren()
getRendersChildren
in class javax.faces.render.Renderer
protected java.lang.String augmentIdReference(javax.faces.context.FacesContext context, java.lang.String forValue, javax.faces.component.UIComponent fromComponent)
Conditionally augment an id-reference value.
If the forValue
doesn't already include a generated
suffix, but the id of the fromComponent
does include a
generated suffix, then append the suffix from the
fromComponent
to the forValue
.
Otherwise just return the forValue
as is.
forValue
- - the basic id-reference value.fromComponent
- - the component that holds the
code>forValue.
forValue.
protected void encodeRecursive(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
Render nested child components by invoking the encode methods
on those components, but only when the rendered
property is true
.
java.io.IOException
protected java.util.Iterator<javax.faces.component.UIComponent> getChildren(javax.faces.component.UIComponent component)
Return an Iterator over the children of the specified
component, selecting only those that have a
rendered
property of true
.
component
- UIComponent
for which to extract childrenprotected java.lang.String getCurrentValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void getEndTextToRender(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String currentValue) throws java.io.IOException
java.io.IOException
protected javax.faces.component.UIComponent getFacet(javax.faces.component.UIComponent component, java.lang.String name)
Return the specified facet from the specified component, but
only if its rendered
property is
set to true
.
component
- Component from which to return a facetname
- Name of the desired facetprotected javax.faces.component.UIComponent getForComponent(javax.faces.context.FacesContext context, java.lang.String forComponent, javax.faces.component.UIComponent component)
forComponent
forComponent
- - the component to search forcomponent
- - the starting point in which to begin the search
id
forComponent otheriwse null if no match is found.protected java.lang.String getFormattedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object currentValue) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
protected java.util.Iterator getMessageIter(javax.faces.context.FacesContext context, java.lang.String forComponent, javax.faces.component.UIComponent component)
protected HtmlBasicRenderer.Param[] getParamList(javax.faces.component.UIComponent command)
command
- the command which may have parameters
protected java.lang.Object getValue(javax.faces.component.UIComponent component)
protected void setSubmittedValue(javax.faces.component.UIComponent component, java.lang.Object value)
protected boolean shouldWriteIdAttribute(javax.faces.component.UIComponent component)
protected java.lang.String writeIdAttributeIfNecessary(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |