org.apache.myfaces.custom.graphicimagedynamic
Class GraphicImageDynamicRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase
              extended by org.apache.myfaces.renderkit.html.ext.HtmlImageRenderer
                  extended by org.apache.myfaces.custom.graphicimagedynamic.GraphicImageDynamicRenderer
All Implemented Interfaces:
org.apache.myfaces.renderkit.html.util.ResourceLoader

public class GraphicImageDynamicRenderer
extends HtmlImageRenderer
implements org.apache.myfaces.renderkit.html.util.ResourceLoader

Author:
Sylvain Vieujot

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.myfaces.renderkit.html.util.ResourceLoader
org.apache.myfaces.renderkit.html.util.ResourceLoader.ClosedSocketException
 
Field Summary
static java.lang.String RENDERER_TYPE
           
 
Constructor Summary
GraphicImageDynamicRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void renderImage(ImageRenderer imageRenderer, javax.faces.context.FacesContext facesContext)
          This method is used for rendering the image.
 void serveResource(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String resourceUri)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RENDERER_TYPE

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

GraphicImageDynamicRenderer

public GraphicImageDynamicRenderer()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Overrides:
encodeEnd in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase
Throws:
java.io.IOException

decode

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

serveResource

public void serveResource(javax.servlet.ServletContext servletContext,
                          javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response,
                          java.lang.String resourceUri)
                   throws java.io.IOException
Specified by:
serveResource in interface org.apache.myfaces.renderkit.html.util.ResourceLoader
Throws:
java.io.IOException

renderImage

protected void renderImage(ImageRenderer imageRenderer,
                           javax.faces.context.FacesContext facesContext)
                    throws java.lang.Exception
This method is used for rendering the image.

Parameters:
imageRenderer -
facesContext -
Throws:
java.lang.Exception


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