org.apache.myfaces.tobago.renderkit
Class RendererBase

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.tobago.renderkit.RendererBase
All Implemented Interfaces:
TobagoRenderer
Direct Known Subclasses:
BoxRendererBase, CommandRendererBase, InputRendererBase, LayoutRenderer, MessageRendererBase, PageRendererBase, SelectManyRendererBase

public abstract class RendererBase
extends Renderer
implements TobagoRenderer


Field Summary
static String BEGIN_POSTFIX
           
static String CHILDREN_POSTFIX
           
static String END_POSTFIX
           
 
Constructor Summary
RendererBase()
           
 
Method Summary
protected  void checkForCommandFacet(UIComponent component, FacesContext facesContext, TobagoResponseWriter writer)
           
protected  void checkForCommandFacet(UIComponent component, List<String> clientIds, FacesContext facesContext, TobagoResponseWriter writer)
           
 void decode(FacesContext facesContext, UIComponent component)
           
 void encodeBegin(FacesContext facesContext, UIComponent component)
           
 void encodeBeginTobago(FacesContext facesContext, UIComponent component)
          Normally not needed to overrwrite
 void encodeChildren(FacesContext facesContext, UIComponent component)
           
 void encodeChildrenTobago(FacesContext facesContext, UIComponent component)
           
 void encodeEnd(FacesContext facesContext, UIComponent component)
           
 void encodeEndTobago(FacesContext facesContext, UIComponent component)
           
 int getComponentExtraHeight(FacesContext facesContext, UIComponent component)
           
 int getComponentExtraWidth(FacesContext facesContext, UIComponent component)
           
 int getConfiguredValue(FacesContext facesContext, UIComponent component, String key)
           
 Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue)
           
 Converter getConverter(FacesContext context, UIComponent component)
           
protected  String getCurrentValue(FacesContext facesContext, UIComponent component)
           
 int getFixedHeight(FacesContext facesContext, UIComponent component)
           
 int getFixedSpace(FacesContext facesContext, UIComponent component, boolean width)
           
 int getFixedWidth(FacesContext facesContext, UIComponent component)
           
protected static String getFormattedValue(FacesContext facesContext, UIComponent component)
           
protected static String getFormattedValue(FacesContext context, UIComponent component, Object currentValue)
           
 int getHeaderHeight(FacesContext facesContext, UIComponent component)
           
 Dimension getMinimumSize(FacesContext facesContext, UIComponent component)
           
 int getPaddingHeight(FacesContext facesContext, UIComponent component)
           
 int getPaddingWidth(FacesContext facesContext, UIComponent component)
           
 String getRendererName(String rendererType)
           
protected  Object getValue(UIComponent component)
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEGIN_POSTFIX

public static final String BEGIN_POSTFIX
See Also:
Constant Field Values

CHILDREN_POSTFIX

public static final String CHILDREN_POSTFIX
See Also:
Constant Field Values

END_POSTFIX

public static final String END_POSTFIX
See Also:
Constant Field Values
Constructor Detail

RendererBase

public RendererBase()
Method Detail

encodeBegin

public void encodeBegin(FacesContext facesContext,
                        UIComponent component)
                 throws IOException
Overrides:
encodeBegin in class Renderer
Throws:
IOException

encodeChildren

public void encodeChildren(FacesContext facesContext,
                           UIComponent component)
                    throws IOException
Overrides:
encodeChildren in class Renderer
Throws:
IOException

encodeEnd

public void encodeEnd(FacesContext facesContext,
                      UIComponent component)
               throws IOException
Overrides:
encodeEnd in class Renderer
Throws:
IOException

decode

public void decode(FacesContext facesContext,
                   UIComponent component)
Overrides:
decode in class Renderer

getRendererName

public String getRendererName(String rendererType)

getConfiguredValue

public int getConfiguredValue(FacesContext facesContext,
                              UIComponent component,
                              String key)

getHeaderHeight

public int getHeaderHeight(FacesContext facesContext,
                           UIComponent component)

getPaddingWidth

public int getPaddingWidth(FacesContext facesContext,
                           UIComponent component)

getPaddingHeight

public int getPaddingHeight(FacesContext facesContext,
                            UIComponent component)

getComponentExtraWidth

public int getComponentExtraWidth(FacesContext facesContext,
                                  UIComponent component)

getComponentExtraHeight

public int getComponentExtraHeight(FacesContext facesContext,
                                   UIComponent component)

getMinimumSize

public Dimension getMinimumSize(FacesContext facesContext,
                                UIComponent component)

getFixedWidth

public int getFixedWidth(FacesContext facesContext,
                         UIComponent component)

getFixedHeight

public int getFixedHeight(FacesContext facesContext,
                          UIComponent component)

getFixedSpace

public int getFixedSpace(FacesContext facesContext,
                         UIComponent component,
                         boolean width)

encodeBeginTobago

public void encodeBeginTobago(FacesContext facesContext,
                              UIComponent component)
                       throws IOException
Normally not needed to overrwrite

Specified by:
encodeBeginTobago in interface TobagoRenderer
Throws:
IOException

encodeChildrenTobago

public void encodeChildrenTobago(FacesContext facesContext,
                                 UIComponent component)
                          throws IOException
Specified by:
encodeChildrenTobago in interface TobagoRenderer
Throws:
IOException

encodeEndTobago

public void encodeEndTobago(FacesContext facesContext,
                            UIComponent component)
                     throws IOException
Specified by:
encodeEndTobago in interface TobagoRenderer
Throws:
IOException

getCurrentValue

protected String getCurrentValue(FacesContext facesContext,
                                 UIComponent component)

getValue

protected Object getValue(UIComponent component)

getConverter

public Converter getConverter(FacesContext context,
                              UIComponent component)

getConvertedValue

public Object getConvertedValue(FacesContext context,
                                UIComponent component,
                                Object submittedValue)
                         throws ConverterException
Overrides:
getConvertedValue in class Renderer
Throws:
ConverterException

getFormattedValue

protected static String getFormattedValue(FacesContext facesContext,
                                          UIComponent component)

getFormattedValue

protected static String getFormattedValue(FacesContext context,
                                          UIComponent component,
                                          Object currentValue)
                                   throws ConverterException
Throws:
ConverterException

checkForCommandFacet

protected void checkForCommandFacet(UIComponent component,
                                    FacesContext facesContext,
                                    TobagoResponseWriter writer)
                             throws IOException
Throws:
IOException

checkForCommandFacet

protected void checkForCommandFacet(UIComponent component,
                                    List<String> clientIds,
                                    FacesContext facesContext,
                                    TobagoResponseWriter writer)
                             throws IOException
Throws:
IOException


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.