net.sf.jasperreports.jsf.fill
Class AbstractFiller

java.lang.Object
  extended by net.sf.jasperreports.jsf.fill.AbstractFiller
All Implemented Interfaces:
Filler
Direct Known Subclasses:
AbstractJRDataSourceFiller, AbstractSQLFiller

public abstract class AbstractFiller
extends Object
implements Filler

The Class Filler.


Field Summary
static String PARAM_REPORT_CLASSLOADER
          The Constant PARAM_REPORT_CLASSLOADER.
static String PARAM_REPORT_LOCALE
          The Constant PARAM_REPORT_LOCALE.
 
Constructor Summary
AbstractFiller(UIDataSource dataSource)
           
 
Method Summary
protected  Map<String,Object> buildParamMap(FacesContext context, UIReport report)
          Builds the param map.
protected abstract  JasperPrint doFill(FacesContext context, InputStream reportStream, Map<String,Object> params)
          Do fill.
 JasperPrint fill(FacesContext context, UIReport report)
          Fill.
 UIDataSource getDataSourceComponent()
          Gets the data source component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_REPORT_CLASSLOADER

public static final String PARAM_REPORT_CLASSLOADER
The Constant PARAM_REPORT_CLASSLOADER.

See Also:
Constant Field Values

PARAM_REPORT_LOCALE

public static final String PARAM_REPORT_LOCALE
The Constant PARAM_REPORT_LOCALE.

See Also:
Constant Field Values
Constructor Detail

AbstractFiller

public AbstractFiller(UIDataSource dataSource)
Method Detail

getDataSourceComponent

public final UIDataSource getDataSourceComponent()
Gets the data source component.

Returns:
the data source component

fill

public final JasperPrint fill(FacesContext context,
                              UIReport report)
                       throws FillerException
Fill.

Specified by:
fill in interface Filler
Parameters:
context - the context
report - the report
Returns:
the jasper print
Throws:
FillerException - the filler exception

doFill

protected abstract JasperPrint doFill(FacesContext context,
                                      InputStream reportStream,
                                      Map<String,Object> params)
                               throws FillerException
Do fill.

Parameters:
context - the context
reportStream - the report stream
params - the params
Returns:
the jasper print
Throws:
FillerException - the filler exception

buildParamMap

protected Map<String,Object> buildParamMap(FacesContext context,
                                           UIReport report)
                                    throws FillerException
Builds the param map.

Parameters:
context - the context
report - the report
Returns:
the map< string, object>
Throws:
FillerException


Copyright © 2009 SourceForge.net. All Rights Reserved.