|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
com.sun.rave.web.ui.renderer.FieldRenderer
public class FieldRenderer
Renderer for TextField
components.
Field Summary | |
---|---|
static java.lang.String |
SPACER_ID
|
static java.lang.String[] |
STRING_ATTRIBUTES
The list of attribute names in the HTML 4.01 Specification that correspond to the entity type %events;. |
Constructor Summary | |
---|---|
FieldRenderer()
|
Method Summary | |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Decode the component component |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
No-op |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
No-op. |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
boolean |
getRendersChildren()
Returns true, meaning that the FieldRenderer is responsible for rendering the children the component it is asked to render. |
protected java.lang.String |
getStyleClass(Field component,
java.lang.String hiddenStyle)
|
boolean |
renderField(javax.faces.context.FacesContext context,
Field component,
java.lang.String type,
java.lang.String[] styles)
Render the TextField depending on the value of the type property. |
protected void |
renderInput(Field component,
java.lang.String type,
java.lang.String id,
boolean renderUserStyles,
java.lang.String[] styles,
javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer)
|
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] STRING_ATTRIBUTES
The list of attribute names in the HTML 4.01 Specification that correspond to the entity type %events;.
public static final java.lang.String SPACER_ID
Constructor Detail |
---|
public FieldRenderer()
Method Detail |
---|
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 renderField(javax.faces.context.FacesContext context, Field component, java.lang.String type, java.lang.String[] styles) throws java.io.IOException
Render the TextField depending on the value of the
type
property.
context
- FacesContext
for the current requestcomponent
- UIComponent
to be rendered
java.io.IOException
- if an input/output error occursprotected void renderInput(Field component, java.lang.String type, java.lang.String id, boolean renderUserStyles, java.lang.String[] styles, javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer) throws java.io.IOException
java.io.IOException
protected java.lang.String getStyleClass(Field component, java.lang.String hiddenStyle)
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class javax.faces.render.Renderer
context
- The FacesContext associated with this requestcomponent
- The TextField component to decodepublic void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
No-op.
encodeChildren
in class javax.faces.render.Renderer
context
- FacesContext
for the response we are creatingcomponent
- UIComponent
whose children are to be rendered
java.io.IOException
- if an input/output error occurs while rendering
java.lang.NullPointerException
- if context
or component
is null
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
No-op
encodeBegin
in class javax.faces.render.Renderer
context
- FacesContext
for the request we are processingcomponent
- UIComponent
to be renderedpublic boolean getRendersChildren()
Returns true, meaning that the FieldRenderer is responsible for rendering the children the component it is asked to render.
getRendersChildren
in class javax.faces.render.Renderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |