net.sf.jasperreports.jsf.renderkit
Class EmbedRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by net.sf.jasperreports.jsf.renderkit.EmbedRenderer
All Implemented Interfaces:
ReportRenderer

public class EmbedRenderer
extends Renderer

The Class EmbedRenderer.

Author:
A. Alonso Dominguez

Field Summary
static String CONTENT_DISPOSITION
           
static String RENDERER_TYPE
          The Constant RENDERER_TYPE.
 
Constructor Summary
EmbedRenderer()
           
 
Method Summary
protected  String buildReportURI(FacesContext context, UIComponent report)
          Builds the report uri.
 void encodeBegin(FacesContext context, UIComponent component)
           
 void encodeChildren(FacesContext context, UIComponent component)
           
 void encodeContent(FacesContext context, UIReport report)
           
 void encodeEnd(FacesContext context, UIComponent component)
           
 void encodeHeaders(FacesContext context, UIReport report)
           
 String getContentDisposition()
           
 boolean getRendersChildren()
           
protected  void registerComponent(FacesContext context, UIComponent report)
           
protected  void renderAttributes(ResponseWriter writer, UIComponent report)
          Render attributes.
protected  void renderIdAttribute(FacesContext context, UIComponent report)
          Render id attribute.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_DISPOSITION

public static final String CONTENT_DISPOSITION
See Also:
Constant Field Values

RENDERER_TYPE

public static final String RENDERER_TYPE
The Constant RENDERER_TYPE.

See Also:
Constant Field Values
Constructor Detail

EmbedRenderer

public EmbedRenderer()
Method Detail

getContentDisposition

public String getContentDisposition()

encodeBegin

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

encodeChildren

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

encodeEnd

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

renderAttributes

protected void renderAttributes(ResponseWriter writer,
                                UIComponent report)
                         throws IOException
Render attributes.

Parameters:
writer - the writer
report - the report
Throws:
IOException - Signals that an I/O exception has occurred.

getRendersChildren

public final boolean getRendersChildren()
Overrides:
getRendersChildren in class Renderer

encodeContent

public void encodeContent(FacesContext context,
                          UIReport report)
                   throws IOException
Specified by:
encodeContent in interface ReportRenderer
Throws:
IOException

encodeHeaders

public void encodeHeaders(FacesContext context,
                          UIReport report)
                   throws IOException
Specified by:
encodeHeaders in interface ReportRenderer
Throws:
IOException

buildReportURI

protected final String buildReportURI(FacesContext context,
                                      UIComponent report)
Builds the report uri.

Parameters:
context - the context
report - the report
Returns:
the string

registerComponent

protected final void registerComponent(FacesContext context,
                                       UIComponent report)

renderIdAttribute

protected final void renderIdAttribute(FacesContext context,
                                       UIComponent report)
                                throws IOException
Render id attribute.

Parameters:
context - the context
report - the report
Throws:
IOException - Signals that an I/O exception has occurred.


Copyright © 2009 SourceForge.net. All Rights Reserved.