net.sf.jasperreports.jsf.engine.export
Class ExporterBase

java.lang.Object
  extended by net.sf.jasperreports.jsf.engine.export.ExporterBase
All Implemented Interfaces:
Exporter
Direct Known Subclasses:
CsvExporter, DocxExporter, HtmlExporter, JExcelApiExporter, PdfExporter, RtfExporter, TextExporter, XlsExporter, XmlExporter

public abstract class ExporterBase
extends Object
implements Exporter

Base class for Exporter implementations.

Author:
A. Alonso Dominguez

Field Summary
static String ATTR_CHARACTER_ENCODING
           
static String ATTR_END_PAGE_INDEX
          The Constant ATTR_END_PAGE_INDEX.
static String ATTR_FILTER
           
static String ATTR_IGNORE_PAGE_MARGINS
           
static String ATTR_OFFSET_X
           
static String ATTR_OFFSET_Y
           
static String ATTR_PAGE_INDEX
          The Constant ATTR_PAGE_INDEX.
static String ATTR_START_PAGE_INDEX
          The Constant ATTR_START_PAGE_INDEX.
 
Constructor Summary
ExporterBase()
           
 
Method Summary
protected abstract  net.sf.jasperreports.engine.JRExporter createJRExporter(javax.faces.context.FacesContext context, UIReport component)
          Creates the jr exporter.
 void export(javax.faces.context.FacesContext context, UIReport component, OutputStream stream)
          Export.
protected  void setParameterUsingAttribute(UIReport component, net.sf.jasperreports.engine.JRExporter exporter, net.sf.jasperreports.engine.JRExporterParameter param, String attr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.jsf.engine.Exporter
getContentTypes
 

Field Detail

ATTR_CHARACTER_ENCODING

public static final String ATTR_CHARACTER_ENCODING
See Also:
Constant Field Values

ATTR_FILTER

public static final String ATTR_FILTER
See Also:
Constant Field Values

ATTR_IGNORE_PAGE_MARGINS

public static final String ATTR_IGNORE_PAGE_MARGINS
See Also:
Constant Field Values

ATTR_END_PAGE_INDEX

public static final String ATTR_END_PAGE_INDEX
The Constant ATTR_END_PAGE_INDEX.

See Also:
Constant Field Values

ATTR_PAGE_INDEX

public static final String ATTR_PAGE_INDEX
The Constant ATTR_PAGE_INDEX.

See Also:
Constant Field Values

ATTR_START_PAGE_INDEX

public static final String ATTR_START_PAGE_INDEX
The Constant ATTR_START_PAGE_INDEX.

See Also:
Constant Field Values

ATTR_OFFSET_X

public static final String ATTR_OFFSET_X
See Also:
Constant Field Values

ATTR_OFFSET_Y

public static final String ATTR_OFFSET_Y
See Also:
Constant Field Values
Constructor Detail

ExporterBase

public ExporterBase()
Method Detail

export

public final void export(javax.faces.context.FacesContext context,
                         UIReport component,
                         OutputStream stream)
                  throws IOException,
                         ExporterException
Export.

Specified by:
export in interface Exporter
Parameters:
context - the context
component - the report component
stream - the stream
Throws:
IOException - Signals that an I/O exception has occurred.
ExporterException - the exporter exception

createJRExporter

protected abstract net.sf.jasperreports.engine.JRExporter createJRExporter(javax.faces.context.FacesContext context,
                                                                           UIReport component)
                                                                    throws ExporterException
Creates the jr exporter.

Parameters:
context - the faces' context
component - the report component
Returns:
the jR exporter
Throws:
ExporterException

setParameterUsingAttribute

protected void setParameterUsingAttribute(UIReport component,
                                          net.sf.jasperreports.engine.JRExporter exporter,
                                          net.sf.jasperreports.engine.JRExporterParameter param,
                                          String attr)


Copyright © 2011 SourceForge.net. All Rights Reserved.