ar.com.fdvs.dj.domain.builders
Class SubReportBuilder
java.lang.Object
ar.com.fdvs.dj.domain.builders.SubReportBuilder
public class SubReportBuilder
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubReportBuilder
public SubReportBuilder()
build
public Subreport build()
throws DJBuilderException
- Throws:
DJBuilderException
setDataSource
public SubReportBuilder setDataSource(int origin,
int type,
java.lang.String expression)
- Indicates from where to get the data source.
- Parameters:
origin - Must be one of these constans located in DJConstants inteface
- SUBREPORT_DATAS_OURCE_ORIGIN_PARAMETER
- SUBREPORT_DATAS_OURCE_ORIGIN_FIELD
- SUBREPORT_DATAS_OURCE_ORIGIN_INTERNAL
type - tell if the datasource is a Collection, an Array, a ResultSet or whatever.
Its value must be a constant from DJConstants of the like DATA_SOURCE_TYPE_...expression - is -depending on the origin- te path to the datasource
ie: if origin is SUBREPORT_DATAS_OURCE_ORIGIN_PARAMETER, then expression can be "subreport_datasource".
You must in the parameters map an object using "subreport_datasource" as the key.
The object must be an instance of JRDataSource or any of the following
Collection, Array, ResultSet, or any of the data source types provided by Jasper Reports
- Returns:
setDataSource
public SubReportBuilder setDataSource(int origin,
java.lang.String expression)
- like addDataSource(int origin, int type, String expression) but the type will be of the
JRDataSource
- Parameters:
origin - expression -
- Returns:
setDataSource
public SubReportBuilder setDataSource(java.lang.String expression)
- like addDataSource(int origin, String expression) but the origin will be from a Parameter
- Parameters:
origin - expression -
- Returns:
setReport
public SubReportBuilder setReport(net.sf.jasperreports.engine.JasperReport jasperReport)
setDynamicReport
public SubReportBuilder setDynamicReport(DynamicReport dynamicReport,
LayoutManager layoutManager)
setPathToReport
public SubReportBuilder setPathToReport(java.lang.String path)
setStartInNewPage
public SubReportBuilder setStartInNewPage(boolean startInNewPage)
addParameter
public SubReportBuilder addParameter(SubreportParameter sp)
addParameterFieldType
public SubReportBuilder addParameterFieldType(java.lang.String propertyName,
java.lang.String paramName)
Copyright © 2006-2008 FDV Solutions. All Rights Reserved.