net.sf.jasperreports.jsf.renderkit.html
Class FrameRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by net.sf.jasperreports.jsf.renderkit.ReportRenderer
          extended by net.sf.jasperreports.jsf.renderkit.html.FrameRenderer

public final class FrameRenderer
extends ReportRenderer

Renderer for report frames.

Draws an inline HTML iframe element in the containing view. Report contents will be shown inside that nested frame element.

Author:
A. Alonso Dominguez

Field Summary
static String CONTENT_DISPOSITION
          The constant representing the renderer's content disposition.
static String RENDERER_TYPE
          The renderer type.
 
Constructor Summary
FrameRenderer()
           
 
Method Summary
 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)
           
 String getContentDisposition()
          Obtains the default content disposition for this renderer.
 boolean getRendersChildren()
           
protected  void renderAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent report)
          Render HTML attributes.
protected  void renderIdAttribute(javax.faces.context.FacesContext context, javax.faces.component.UIComponent report)
          Render id attribute.
 
Methods inherited from class net.sf.jasperreports.jsf.renderkit.ReportRenderer
encodeContent, encodeContentDisposition, encodeHeaders, encodeReportURL, registerReportView
 
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
The constant representing the renderer's content disposition.

See Also:
Constant Field Values

RENDERER_TYPE

public static final String RENDERER_TYPE
The renderer type.

Constructor Detail

FrameRenderer

public FrameRenderer()
Method Detail

getContentDisposition

public String getContentDisposition()
Obtains the default content disposition for this renderer.

Specified by:
getContentDisposition in class ReportRenderer
Returns:
the default content disposition

encodeBegin

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

encodeChildren

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

encodeEnd

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

renderAttributes

protected void renderAttributes(javax.faces.context.ResponseWriter writer,
                                javax.faces.component.UIComponent report)
                         throws IOException
Render HTML 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 javax.faces.render.Renderer

renderIdAttribute

protected final void renderIdAttribute(javax.faces.context.FacesContext context,
                                       javax.faces.component.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 © 2011 SourceForge.net. All Rights Reserved.