|
||||||||||
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.OptionComponentInfo
Structure to hold common info used by Select* components to reduce the number of times component attributes are evaluated when rendering options. |
static class |
HtmlBasicRenderer.Param
Simple class to encapsulate the name and value of a UIParameter . |
Field Summary | |
---|---|
protected static HtmlBasicRenderer.Param[] |
EMPTY_PARAMS
|
protected static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
HtmlBasicRenderer()
|
Method Summary | |
---|---|
protected java.lang.String |
augmentIdReference(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)
|
protected java.lang.String |
decodeBehaviors(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.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> |
getBehaviorParameters(javax.faces.component.UIComponent command)
Collections parameters for use with Behavior script rendering. |
protected java.util.Iterator<javax.faces.component.UIComponent> |
getChildren(javax.faces.component.UIComponent component)
|
protected 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)
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)
|
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)
|
protected java.lang.String |
getFormattedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object currentValue,
javax.faces.convert.Converter converter)
Overloads getFormattedValue to take a advantage of a previously obtained converter. |
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)
|
protected static java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> |
getPassThruBehaviors(javax.faces.component.UIComponent component,
java.lang.String domEventName,
java.lang.String componentEventName)
When rendering pass thru attributes, we need to take any attached Behaviors into account. |
boolean |
getRendersChildren()
|
protected java.lang.Object |
getValue(javax.faces.component.UIComponent component)
|
protected boolean |
isBehaviorSource(javax.faces.context.FacesContext ctx,
java.lang.String behaviorSourceId,
java.lang.String componentClientId)
|
protected void |
rendererParamsNotNull(javax.faces.context.FacesContext context,
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 |
shouldDecode(javax.faces.component.UIComponent component)
|
protected boolean |
shouldEncode(javax.faces.component.UIComponent component)
|
protected boolean |
shouldEncodeChildren(javax.faces.component.UIComponent 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
protected static final HtmlBasicRenderer.Param[] EMPTY_PARAMS
Constructor Detail |
---|
public HtmlBasicRenderer()
Method Detail |
---|
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 final java.lang.String decodeBehaviors(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected boolean isBehaviorSource(javax.faces.context.FacesContext ctx, java.lang.String behaviorSourceId, java.lang.String componentClientId)
ctx
- the FacesContext
for the current requestbehaviorSourceId
- the ID of the behavior sourcecomponentClientId
- the client ID of the component being decoded
true
if the behavior source is for the component
being decoded, otherwise false
protected java.lang.String augmentIdReference(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
.
context
- FacesContext for the current requestcomponent
- the component to recursively encode
java.io.IOException
- if an error occurrs during the encode processprotected java.util.Iterator<javax.faces.component.UIComponent> getChildren(javax.faces.component.UIComponent component)
component
- UIComponent
for which to extract children
rendered
property of true
.protected java.lang.String getCurrentValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
context
- the FacesContext for the current requestcomponent
- the UIComponent whose value we're interested in
protected void getEndTextToRender(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String currentValue) throws java.io.IOException
context
- the FacesContext for the current requestcomponent
- the UIComponent of interestcurrentValue
- component
's current value
java.io.IOException
- if an error occurs rendering the textprotected javax.faces.component.UIComponent getFacet(javax.faces.component.UIComponent component, java.lang.String name)
component
- Component from which to return a facetname
- Name of the desired facet
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)
forComponent
context
- the FacesContext for the current requestforComponent
- - 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, javax.faces.convert.Converter converter) throws javax.faces.convert.ConverterException
context
- the FacesContext for the current requestcomponent
- UIComponent of interestcurrentValue
- the current value of component
converter
- the component's converter
javax.faces.convert.ConverterException
- if the value cannot be convertedprotected java.lang.String getFormattedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object currentValue) throws javax.faces.convert.ConverterException
context
- the FacesContext for the current requestcomponent
- UIComponent of interestcurrentValue
- the current value of component
javax.faces.convert.ConverterException
- if the value cannot be convertedprotected 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.util.Collection<javax.faces.component.behavior.ClientBehaviorContext.Parameter> getBehaviorParameters(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)
component
- the target component to which the submitted value
will be setvalue
- the value to setprotected boolean shouldWriteIdAttribute(javax.faces.component.UIComponent component)
component
- the component of interest
protected java.lang.String writeIdAttributeIfNecessary(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
protected void rendererParamsNotNull(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected boolean shouldEncode(javax.faces.component.UIComponent component)
protected boolean shouldDecode(javax.faces.component.UIComponent component)
protected boolean shouldEncodeChildren(javax.faces.component.UIComponent component)
protected static java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> getPassThruBehaviors(javax.faces.component.UIComponent component, java.lang.String domEventName, java.lang.String componentEventName)
component
- the component that we are renderingdomEventName
- the name of the dom-level eventcomponentEventName
- the name of the component-level event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |