com.sun.j2ee.blueprints.ui.util
Class BaseRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.j2ee.blueprints.ui.util.BaseRenderer
Direct Known Subclasses:
BuyNowRenderer, ProgressBarRenderer, RatingRenderer, SelectValueRenderer

public abstract class BaseRenderer
extends javax.faces.render.Renderer

Convenient base class for Renderer implementations.


Field Summary
static java.lang.String BUNDLE_ATTR
           
 
Constructor Summary
BaseRenderer()
           
 
Method Summary
static boolean componentIsDisabledOnReadonly(javax.faces.component.UIComponent component)
           
 java.lang.String convertClientId(javax.faces.context.FacesContext context, java.lang.String clientId)
           
protected  void encodeRecursive(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  java.lang.String getKeyAndLookupInBundle(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String keyAttr)
           
protected static void renderBooleanPassThruAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
           
protected static void renderPassThruAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
           
protected static void renderPassThruAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String[] excludes)
           
 javax.faces.context.ResponseWriter setupResponseWriter(javax.faces.context.FacesContext context)
           
protected static boolean shouldRenderAttribute(java.lang.Object attributeVal)
          Return true if and only if the argument attributeVal is an instance of a wrapper for a primitive type and its value is equal to the default value for that type as given in the spec.
 
Methods inherited from class javax.faces.render.Renderer
decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_ATTR

public static final java.lang.String BUNDLE_ATTR
See Also:
Constant Field Values
Constructor Detail

BaseRenderer

public BaseRenderer()
Method Detail

convertClientId

public java.lang.String convertClientId(javax.faces.context.FacesContext context,
                                        java.lang.String clientId)
Overrides:
convertClientId in class javax.faces.render.Renderer

setupResponseWriter

public javax.faces.context.ResponseWriter setupResponseWriter(javax.faces.context.FacesContext context)
                                                       throws java.io.IOException
Throws:
java.io.IOException

getKeyAndLookupInBundle

protected java.lang.String getKeyAndLookupInBundle(javax.faces.context.FacesContext context,
                                                   javax.faces.component.UIComponent component,
                                                   java.lang.String keyAttr)
                                            throws java.util.MissingResourceException
Throws:
java.util.MissingResourceException

encodeRecursive

protected void encodeRecursive(javax.faces.context.FacesContext context,
                               javax.faces.component.UIComponent component)
                        throws java.io.IOException
Throws:
java.io.IOException

renderBooleanPassThruAttributes

protected static void renderBooleanPassThruAttributes(javax.faces.context.ResponseWriter writer,
                                                      javax.faces.component.UIComponent component)
                                               throws java.io.IOException
Throws:
java.io.IOException

renderPassThruAttributes

protected static void renderPassThruAttributes(javax.faces.context.ResponseWriter writer,
                                               javax.faces.component.UIComponent component)
                                        throws java.io.IOException
Throws:
java.io.IOException

renderPassThruAttributes

protected static void renderPassThruAttributes(javax.faces.context.ResponseWriter writer,
                                               javax.faces.component.UIComponent component,
                                               java.lang.String[] excludes)
                                        throws java.io.IOException
Throws:
java.io.IOException

shouldRenderAttribute

protected static boolean shouldRenderAttribute(java.lang.Object attributeVal)
Return true if and only if the argument attributeVal is an instance of a wrapper for a primitive type and its value is equal to the default value for that type as given in the spec.


componentIsDisabledOnReadonly

public static boolean componentIsDisabledOnReadonly(javax.faces.component.UIComponent component)