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

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.OutputLinkRenderer

public final class OutputLinkRenderer
extends ReportRenderer

Renderer for report links.

Draws a HTML a element in the containing view. Report contents will be shown once user clicks on the rendered link.

Author:
A. Alonso Dominguez

Field Summary
static String CONTENT_DISPOSITION
          Renderer content disposition.
static String RENDERER_TYPE
          The renderer type.
 
Constructor Summary
OutputLinkRenderer()
           
 
Method Summary
 void encodeBegin(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 renderer's content disposition.
 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, encodeChildren, 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
Renderer content disposition.

See Also:
Constant Field Values

RENDERER_TYPE

public static final String RENDERER_TYPE
The renderer type.

Constructor Detail

OutputLinkRenderer

public OutputLinkRenderer()
Method Detail

getContentDisposition

public String getContentDisposition()
Obtains the renderer's content disposition.

Specified by:
getContentDisposition in class ReportRenderer
Returns:
the renderer's 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

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.