net.sf.jasperreports.jsf.engine.fill
Class DefaultFiller

java.lang.Object
  extended by net.sf.jasperreports.jsf.engine.fill.DefaultFiller
All Implemented Interfaces:
Filler

public class DefaultFiller
extends Object
implements Filler

Default Filler implementation.

Author:
A. Alonso Dominguez

Field Summary
static String PARAM_APPLICATION_SCOPE
           
static String PARAM_REPORT_CLASSLOADER
          The Constant PARAM_REPORT_CLASSLOADER.
static String PARAM_REPORT_LOCALE
          The Constant PARAM_REPORT_LOCALE.
static String PARAM_REQUEST_SCOPE
           
static String PARAM_SESSION_SCOPE
           
static String SUBREPORT_PARAMETER_SEPARATOR
           
 
Constructor Summary
DefaultFiller()
           
 
Method Summary
protected  Map<String,Object> buildParamMap(javax.faces.context.FacesContext context, UIReport component)
          Builds the param map.
protected  net.sf.jasperreports.engine.JasperPrint doFill(javax.faces.context.FacesContext context, UIReport component, Map<String,Object> parameters)
          Performs the internal fill operation.
 void fill(javax.faces.context.FacesContext context, UIReport component)
          Fill the report object with data comming from the submitted source object (if specified).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBREPORT_PARAMETER_SEPARATOR

public static final String SUBREPORT_PARAMETER_SEPARATOR
See Also:
Constant Field Values

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

PARAM_APPLICATION_SCOPE

public static final String PARAM_APPLICATION_SCOPE
See Also:
Constant Field Values

PARAM_SESSION_SCOPE

public static final String PARAM_SESSION_SCOPE
See Also:
Constant Field Values

PARAM_REQUEST_SCOPE

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

DefaultFiller

public DefaultFiller()
Method Detail

fill

public final void fill(javax.faces.context.FacesContext context,
                       UIReport component)
                throws FillerException
Fill the report object with data comming from the submitted source object (if specified).

Specified by:
fill in interface Filler
Parameters:
context - current faces' context.
component - report component.
Throws:
FillerException - if filler throws any exception.

buildParamMap

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

Parameters:
context - the context
component - the component
Returns:
the map
Throws:
FillerException

doFill

protected net.sf.jasperreports.engine.JasperPrint doFill(javax.faces.context.FacesContext context,
                                                         UIReport component,
                                                         Map<String,Object> parameters)
                                                  throws FillerException
Performs the internal fill operation.

Parameters:
context - current faces' context.
component - report component
parameters - report parameters.
Returns:
the generated JasperPrint result.
Throws:
FillerException - if some error happens.


Copyright © 2011 SourceForge.net. All Rights Reserved.