org.jboss.seam.ui.util.cdk
Class RendererBase

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.jboss.seam.ui.util.cdk.RendererBase
Direct Known Subclasses:
ButtonRendererBase, CacheRendererBase, DecorateRendererBase, FileUploadRendererBase, FormattedTextRendererBase, FragmentRendererBase, GraphicImageRendererBase, LinkRendererBase, RemoteRendererBase, SelectDateRendererBase, StyleRendererBase, ValidateAllRendererBase

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

Mangled version of Ajax4Jsf's RendererBase without supporting classes Base Renderer for all chameleon Skin's and components. At most, make all common procedures and realise concrete work in "template" methods.

Version:
$Revision: 1.2 $ $Date: 2007/06/20 02:46:17 $
Author:
asmirnov@exadel.com (latest modification by $Author: gavin $)

Field Summary
protected static java.lang.String JAVASCRIPT_NAMESPACE
          logger for common cases.
 
Constructor Summary
RendererBase()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void doDecode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Template method for custom decoding of concrete renderer.
protected  void doEncodeBegin(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Template method for custom start encoding of concrete renderer.
protected  void doEncodeChildren(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void doEncodeEnd(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Template method for custom finish encoding of concrete renderer.
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected abstract  java.lang.Class getComponentClass()
          Get base component slass , targetted for this renderer.
static RendererUtils getUtils()
           
protected  void preDecode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void preEncodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void renderChild(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent child)
          Render one component and it childrens
 void renderChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Render all children for given component.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASCRIPT_NAMESPACE

protected static final java.lang.String JAVASCRIPT_NAMESPACE
logger for common cases.

See Also:
Constant Field Values
Constructor Detail

RendererBase

public RendererBase()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

preDecode

protected void preDecode(javax.faces.context.FacesContext context,
                         javax.faces.component.UIComponent component)

preEncodeBegin

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

encodeBegin

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

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

encodeEnd

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

getComponentClass

protected abstract java.lang.Class getComponentClass()
Get base component slass , targetted for this renderer. Used for check arguments in decode/encode.


doDecode

protected void doDecode(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
Template method for custom decoding of concrete renderer. All parameters checking if performed in original decode() method.

Parameters:
context -
component -

doEncodeBegin

protected void doEncodeBegin(javax.faces.context.ResponseWriter writer,
                             javax.faces.context.FacesContext context,
                             javax.faces.component.UIComponent component)
                      throws java.io.IOException
Template method for custom start encoding of concrete renderer. All parameters checking and writer is performed in original encodeBegin() method.

Parameters:
writer -
context -
component -
Throws:
java.io.IOException

doEncodeChildren

protected void doEncodeChildren(javax.faces.context.ResponseWriter writer,
                                javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component)
                         throws java.io.IOException
Parameters:
writer -
context -
component -
Throws:
java.io.IOException

doEncodeEnd

protected void doEncodeEnd(javax.faces.context.ResponseWriter writer,
                           javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Template method for custom finish encoding of concrete renderer. All parameters checking and writer is performed in original encodeEnd() method.

Parameters:
writer -
context -
component -
Throws:
java.io.IOException

renderChildren

public void renderChildren(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Render all children for given component.

Parameters:
facesContext -
component -
Throws:
java.io.IOException

renderChild

public void renderChild(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent child)
                 throws java.io.IOException
Render one component and it childrens

Parameters:
facesContext -
child -
Throws:
java.io.IOException

getUtils

public static RendererUtils getUtils()


Copyright © 2007. All Rights Reserved.