com.ibm.xsp.renderkit.html_extended
Class HtmlBasicRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.ibm.xsp.renderkit.FacesRenderer
          extended by com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer
Direct Known Subclasses:
BasicInputTextRenderer

public class HtmlBasicRenderer
extends com.ibm.xsp.renderkit.FacesRenderer

Base Renderer to encode HTML attributes.


Field Summary
static java.lang.String[] BOOLEAN_ATTRS
          HTML Boolean Attributes: readonly disabled
static java.lang.String[] FOCUS_ATTRS
          HTML Focus Attributes: accesskey onblur onfocus tabindex
static java.lang.String[] HTML_ATTRS
          HTML Attributes: dir lang title onclick ondblclick onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseover
static java.lang.String[][] HTML_STYLE_ATTRS
          HTML Style Attributes: style class
static java.lang.String[] NO_ATTRS
          Empty, not used.
 
Fields inherited from class com.ibm.xsp.renderkit.FacesRenderer
CHECKED, CLIENTID, DISABLED, FACTORY, FOR, HTML_BASIC, ID, INPUT, LABEL, NAME, READONLY, TEXT, TYPE, VALUE
 
Constructor Summary
HtmlBasicRenderer()
           
 
Method Summary
protected  void encodeBooleanAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
          Write the HTML boolean attributes for component.
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void encodeFocusAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
          Write the HTML focus attributes for component.
protected  void encodeHtmlAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
          Write the HTML and style attributes for component.
protected  void encodeHtmlAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, boolean includeStyles)
          Write the HTML attributes for component and optionally the style attributes.
protected  void encodeHtmlStyleAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
          Write the HTML style attributes for component.
protected  javax.faces.component.UIComponent getFor(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String sfor)
          Get the component referenced by sfor.
protected  java.util.Iterator<javax.faces.application.FacesMessage> getMessages(javax.faces.context.FacesContext context, java.lang.String sfor, javax.faces.component.UIComponent component)
          Get the messages associated with component.
 boolean getRendersChildren()
           
 
Methods inherited from class com.ibm.xsp.renderkit.FacesRenderer
isValidValue, writeAttribute, writeAttribute, writeAttribute, writeBooleanAttribute, writeId, writeId
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ATTRS

public static final java.lang.String[] NO_ATTRS
Empty, not used.


HTML_ATTRS

public static final java.lang.String[] HTML_ATTRS
HTML Attributes:


HTML_STYLE_ATTRS

public static final java.lang.String[][] HTML_STYLE_ATTRS
HTML Style Attributes:


BOOLEAN_ATTRS

public static final java.lang.String[] BOOLEAN_ATTRS
HTML Boolean Attributes:


FOCUS_ATTRS

public static final java.lang.String[] FOCUS_ATTRS
HTML Focus Attributes:

Constructor Detail

HtmlBasicRenderer

public HtmlBasicRenderer()
Method Detail

encodeHtmlAttributes

protected void encodeHtmlAttributes(javax.faces.context.ResponseWriter writer,
                                    javax.faces.component.UIComponent component)
                             throws java.io.IOException
Write the HTML and style attributes for component.

Throws:
java.io.IOException

encodeHtmlAttributes

protected void encodeHtmlAttributes(javax.faces.context.ResponseWriter writer,
                                    javax.faces.component.UIComponent component,
                                    boolean includeStyles)
                             throws java.io.IOException
Write the HTML attributes for component and optionally the style attributes.

Throws:
java.io.IOException

encodeHtmlStyleAttributes

protected void encodeHtmlStyleAttributes(javax.faces.context.ResponseWriter writer,
                                         javax.faces.component.UIComponent component)
                                  throws java.io.IOException
Write the HTML style attributes for component.

Throws:
java.io.IOException

encodeBooleanAttributes

protected void encodeBooleanAttributes(javax.faces.context.ResponseWriter writer,
                                       javax.faces.component.UIComponent component)
                                throws java.io.IOException
Write the HTML boolean attributes for component.

Throws:
java.io.IOException

encodeFocusAttributes

protected void encodeFocusAttributes(javax.faces.context.ResponseWriter writer,
                                     javax.faces.component.UIComponent component)
                              throws java.io.IOException
Write the HTML focus attributes for component.

Throws:
java.io.IOException

getMessages

protected java.util.Iterator<javax.faces.application.FacesMessage> getMessages(javax.faces.context.FacesContext context,
                                                                               java.lang.String sfor,
                                                                               javax.faces.component.UIComponent component)
Get the messages associated with component.


getFor

protected javax.faces.component.UIComponent getFor(javax.faces.context.FacesContext context,
                                                   javax.faces.component.UIComponent component,
                                                   java.lang.String sfor)
Get the component referenced by sfor.


getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Overrides:
encodeChildren in class javax.faces.render.Renderer
Throws:
java.io.IOException