Save This Page
Home » mojarra-1.2_09-b02-FCS-source » com.sun.faces.renderkit.html_basic » [javadoc | source]
com.sun.faces.renderkit.html_basic
abstract public class: HtmlBasicRenderer [javadoc | source]
java.lang.Object
   javax.faces.render.Renderer
      com.sun.faces.renderkit.html_basic.HtmlBasicRenderer

Direct Known Subclasses:
    CheckboxRenderer, OutputLinkRenderer, CommandLinkRenderer, GridRenderer, SelectManyCheckboxListRenderer, TextareaRenderer, BaseTableRenderer, SecretRenderer, MenuRenderer, ImageRenderer, OutputMessageRenderer, GroupRenderer, MessageRenderer, LinkRenderer, ButtonRenderer, LabelRenderer, TableRenderer, HtmlBasicInputRenderer, HiddenRenderer, MessagesRenderer, RadioRenderer, TextRenderer, ListboxRenderer, FormRenderer

HtmlBasicRenderer is a base class for implementing renderers for HtmlBasicRenderKit.
Nested Class Summary:
public static class  HtmlBasicRenderer.Param  

Simple class to encapsulate the name and value of a UIParameeter

Field Summary
protected static final  Logger logger     
Constructor:
 public HtmlBasicRenderer() 
Method from com.sun.faces.renderkit.html_basic.HtmlBasicRenderer Summary:
augmentIdReference,   convertClientId,   decode,   encodeEnd,   encodeRecursive,   getChildren,   getCurrentValue,   getEndTextToRender,   getFacet,   getForComponent,   getFormattedValue,   getFormattedValue,   getMessageIter,   getParamList,   getRendersChildren,   getValue,   rendererParamsNotNull,   setSubmittedValue,   shouldDecode,   shouldEncode,   shouldEncodeChildren,   shouldWriteIdAttribute,   writeIdAttributeIfNecessary
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.faces.renderkit.html_basic.HtmlBasicRenderer Detail:
 protected String augmentIdReference(String forValue,
    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.

 public String convertClientId(FacesContext context,
    String clientId) 
 public  void decode(FacesContext context,
    UIComponent component) 
 public  void encodeEnd(FacesContext context,
    UIComponent component) throws IOException 
 protected  void encodeRecursive(FacesContext context,
    UIComponent component) throws IOException 

    Render nested child components by invoking the encode methods on those components, but only when the rendered property is true.

 protected Iterator getChildren(UIComponent component) 
 protected String getCurrentValue(FacesContext context,
    UIComponent component) 
 protected  void getEndTextToRender(FacesContext context,
    UIComponent component,
    String currentValue) throws IOException 
    Renderers override this method to write appropriate HTML content into the buffer.
 protected UIComponent getFacet(UIComponent component,
    String name) 
 protected UIComponent getForComponent(FacesContext context,
    String forComponent,
    UIComponent component) 
    Locates the component identified by forComponent
 protected String getFormattedValue(FacesContext context,
    UIComponent component,
    Object currentValue) throws ConverterException 
 protected String getFormattedValue(FacesContext context,
    UIComponent component,
    Object currentValue,
    Converter converter) throws ConverterException 
    Overloads getFormattedValue to take a advantage of a previously obtained converter.
 protected Iterator getMessageIter(FacesContext context,
    String forComponent,
    UIComponent component) 
 protected HtmlBasicRenderer.Param[] getParamList(UIComponent command) 
 public boolean getRendersChildren() 
 protected Object getValue(UIComponent component) 
 protected  void rendererParamsNotNull(FacesContext context,
    UIComponent component) 
 protected  void setSubmittedValue(UIComponent component,
    Object value) 
    Renderers override this method to store the previous value of the associated component.
 protected boolean shouldDecode(UIComponent component) 
 protected boolean shouldEncode(UIComponent component) 
 protected boolean shouldEncodeChildren(UIComponent component) 
 protected boolean shouldWriteIdAttribute(UIComponent component) 
 protected String writeIdAttributeIfNecessary(FacesContext context,
    ResponseWriter writer,
    UIComponent component)