org.apache.myfaces.custom.document
Class AbstractDocumentRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.custom.document.AbstractDocumentRenderer
Direct Known Subclasses:
DocumentBodyRenderer, DocumentHeadRenderer, DocumentRenderer

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

Base class to handle the document family

Version:
$Revision: 673833 $ $Date: 2008-07-03 16:58:05 -0500 (Thu, 03 Jul 2008) $
Author:
Mario Ivankovits (latest modification by $Author: skitching $)

Constructor Summary
AbstractDocumentRenderer()
           
 
Method Summary
protected  void closeTag(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer)
           
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected abstract  java.lang.Class getDocumentClass()
           
protected abstract  java.lang.String getHtmlTag()
           
protected  void openTag(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent)
           
protected  void writeBeforeEnd(javax.faces.context.FacesContext facesContext)
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDocumentRenderer

public AbstractDocumentRenderer()
Method Detail

getHtmlTag

protected abstract java.lang.String getHtmlTag()

getDocumentClass

protected abstract java.lang.Class getDocumentClass()

encodeBegin

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

openTag

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

closeTag

protected void closeTag(javax.faces.context.FacesContext facesContext,
                        javax.faces.context.ResponseWriter writer)
                 throws java.io.IOException
Throws:
java.io.IOException

encodeEnd

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

writeBeforeEnd

protected void writeBeforeEnd(javax.faces.context.FacesContext facesContext)
                       throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.