public class FastReportBuilder extends DynamicReportBuilder
| Modifier and Type | Field and Description |
|---|---|
protected int |
groupCount |
autoTexts, built, concatenatedReports, globalFooterCrosstabs, globalHeaderCrosstabs, globalVariablesGroup, groupFooterSubreports, groupHeaderSubreports, options, report| Constructor and Description |
|---|
FastReportBuilder() |
| Modifier and Type | Method and Description |
|---|---|
FastReportBuilder |
addBarcodeColumn(String title,
String property,
String className,
int barcodeType,
boolean showText,
boolean checkSum,
String applicationIdentifier,
int width,
boolean fixedWidth,
ImageScaleMode imageScaleMode,
Style style) |
FastReportBuilder |
addBarcodeColumn(String title,
String property,
String className,
int barcodeType,
boolean showText,
int width,
boolean fixedWidth,
ImageScaleMode imageScaleMode) |
FastReportBuilder |
addBarcodeColumn(String title,
String property,
String className,
int barcodeType,
boolean showText,
int width,
boolean fixedWidth,
ImageScaleMode imageScaleMode,
Style style)
By default uses InputStream as the type of the image
|
FastReportBuilder |
addColumn(String title,
CustomExpression expression,
int width,
boolean fixedWidth,
String pattern,
Style style) |
FastReportBuilder |
addColumn(String title,
String property,
Class clazz,
int width) |
FastReportBuilder |
addColumn(String title,
String property,
Class clazz,
int width,
boolean fixedWidth) |
FastReportBuilder |
addColumn(String title,
String property,
Class clazz,
int width,
boolean fixedWidth,
String pattern) |
FastReportBuilder |
addColumn(String title,
String property,
Class clazz,
int width,
boolean fixedWidth,
String pattern,
Style style) |
FastReportBuilder |
addColumn(String title,
String property,
Class clazz,
int width,
boolean fixedWidth,
String pattern,
Style style,
String fieldDescription) |
FastReportBuilder |
addColumn(String title,
String property,
Class clazz,
int width,
Style style) |
FastReportBuilder |
addColumn(String title,
String property,
Class clazz,
int width,
Style style,
Style headerStyle) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width,
boolean fixedWidth) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width,
boolean fixedWidth,
String pattern) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width,
boolean fixedWidth,
String pattern,
Style style) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width,
boolean fixedWidth,
String pattern,
Style style,
String fieldDescription) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width,
Style style) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width,
Style style,
Style headerStyle) |
FastReportBuilder |
addColumn(String title,
String property,
String className,
int width,
Style style,
Style headerStyle,
boolean fixedWidth) |
FastReportBuilder |
addFooterCrosstab(int groupNumber,
DJCrosstab djcross) |
FastReportBuilder |
addFooterVariable(int groupNum,
int colNumber,
DJCalculation op,
Style style) |
FastReportBuilder |
addFooterVariable(int groupNum,
int colNumber,
DJCalculation op,
Style style,
DJValueFormatter valueFormatter) |
FastReportBuilder |
addGlobalFooterVariable(int colNumber,
DJCalculation op,
Style style) |
FastReportBuilder |
addGlobalHeaderVariable(int colNumber,
DJCalculation op,
Style style) |
FastReportBuilder |
addGroups(int numgroups)
This method should be called after all column have been added to the report.
|
FastReportBuilder |
addGroups(int numgroups,
GroupLayout gLayout) |
FastReportBuilder |
addGroupVariable(String position,
int groupNum,
int colNumber,
DJCalculation op,
Style style) |
FastReportBuilder |
addGroupVariable(String position,
int groupNum,
int colNumber,
DJCalculation op,
Style style,
DJValueFormatter valueFormatter) |
FastReportBuilder |
addHeaderCrosstab(int groupNumber,
DJCrosstab djcross) |
FastReportBuilder |
addHeaderVariable(int groupNum,
int colNumber,
DJCalculation op,
Style style) |
FastReportBuilder |
addHeaderVariable(int groupNum,
int colNumber,
DJCalculation op,
Style style,
DJValueFormatter valueFormatter) |
FastReportBuilder |
addImageColumn(String title,
CustomExpression expression,
int width,
boolean fixedWidth,
ImageScaleMode imageScaleMode,
Style style) |
FastReportBuilder |
addImageColumn(String title,
String property,
int width,
boolean fixedWidth,
ImageScaleMode imageScaleMode) |
FastReportBuilder |
addImageColumn(String title,
String property,
int width,
boolean fixedWidth,
ImageScaleMode imageScaleMode,
Style style)
By default uses InputStream as the type of the image
|
FastReportBuilder |
addImageColumn(String title,
String property,
String className,
int width,
boolean fixedWidth,
ImageScaleMode imageScaleMode,
Style style) |
FastReportBuilder |
addVariable(String name,
DJCalculation calculation,
CustomExpression expression) |
FastReportBuilder |
addVariable(String name,
DJCalculation calculation,
CustomExpression expression,
CustomExpression initialValueExpression,
DJVariableResetType resetType,
int resetGroup) |
DynamicReport |
build()
Builds the DynamicReport object.
|
protected void |
guessStyle(Class clazz,
AbstractColumn column) |
protected void |
guessStyle(String className,
AbstractColumn column) |
FastReportBuilder |
setGroupLayout(int groupNumber,
GroupLayout layout) |
addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addChart, addChart, addColumn, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addField, addField, addField, addFirstPageFooterImageBanner, addFirstPageImageBanner, addFirstPageImageBanner, addFont, addFooterCrosstab, addFooterImageBanner, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalVariable, addGlobalVariable, addGlobalVariable, addGroup, addHeaderCrosstab, addImageBanner, addImageBanner, addParameter, addResourceBundle, addStyle, addSubreportInGroup, addSubreportInGroup, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportsToGroups, addVariable, addWatermark, addWatermark, addWatermark, concatenateReports, getColumn, getColumns, getFields, getGroup, setAllowDetailSplit, setBottomMargin, setBottomMargin, setColspan, setColspan, setColumnSpace, setColumnSpace, setColumnsPerPage, setColumnsPerPage, setColumnsPerPage, setColumnsPerPage, setDefaultStyles, setDetailHeight, setDetailHeight, setFooterHeight, setFooterHeight, setFooterVariablesHeight, setFooterVariablesHeight, setGlobalFooterVariableHeight, setGlobalHeaderVariableHeight, setGrandTotalLegend, setGrandTotalLegendStyle, setHeaderHeight, setHeaderHeight, setHeaderVariablesHeight, setIgnorePagination, setLanguage, setLeftMargin, setLeftMargin, setMargins, setOddRowBackgroundStyle, setPageSizeAndOrientation, setPrintBackgroundOnOddRows, setPrintBackgroundOnOddRows, setPrintColumnNames, setProperty, setQuery, setReportLocale, setReportName, setResourceBundle, setRightMargin, setRightMargin, setShowDetailBand, setSubtitle, setSubtitleHeight, setSubtitleStyle, setTemplateFile, setTemplateFile, setTitle, setTitle, setTitleHeight, setTitleIsJrExpression, setTitleStyle, setTopMargin, setTopMargin, setUseFullPageWidth, setUseFullPageWidth, setWhenNoData, setWhenNoData, setWhenNoDataAllSectionNoDetail, setWhenNoDataBlankPage, setWhenNoDataNoPages, setWhenNoDataShowNoDataSection, setWhenNoDataType, setWhenResourceMissing, setWhenResourceMissingLeaveEmptySpace, setWhenResourceMissingReturnNull, setWhenResourceMissingShowKey, setWhenResourceMissingThrowExceptionpublic DynamicReport build()
DynamicReportBuilderbuild in class DynamicReportBuilderpublic FastReportBuilder addColumn(String title, String property, String className, int width, Style style) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, Class clazz, int width, Style style) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, String className, int width, Style style, Style headerStyle) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, Class clazz, int width, Style style, Style headerStyle) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, String className, int width) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, Class clazz, int width) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, String className, int width, boolean fixedWidth) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, String className, int width, Style style, Style headerStyle, boolean fixedWidth) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, Class clazz, int width, boolean fixedWidth) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addImageColumn(String title, String property, int width, boolean fixedWidth, ImageScaleMode imageScaleMode) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addImageColumn(String title, String property, int width, boolean fixedWidth, ImageScaleMode imageScaleMode, Style style) throws ColumnBuilderException, ClassNotFoundException
title - property - width - fixedWidth - imageScaleMode - style - ColumnBuilderExceptionClassNotFoundExceptionpublic FastReportBuilder addImageColumn(String title, CustomExpression expression, int width, boolean fixedWidth, ImageScaleMode imageScaleMode, Style style) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addImageColumn(String title, String property, String className, int width, boolean fixedWidth, ImageScaleMode imageScaleMode, Style style) throws ColumnBuilderException, ClassNotFoundException
title - property - className - valid class names are: InputStream and java.awt.Imagewidth - fixedWidth - imageScaleMode - style - ColumnBuilderExceptionClassNotFoundExceptionpublic FastReportBuilder addBarcodeColumn(String title, String property, String className, int barcodeType, boolean showText, int width, boolean fixedWidth, ImageScaleMode imageScaleMode) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addBarcodeColumn(String title, String property, String className, int barcodeType, boolean showText, int width, boolean fixedWidth, ImageScaleMode imageScaleMode, Style style) throws ColumnBuilderException, ClassNotFoundException
title - property - width - fixedWidth - imageScaleMode - style - ColumnBuilderExceptionClassNotFoundExceptionpublic FastReportBuilder addBarcodeColumn(String title, String property, String className, int barcodeType, boolean showText, boolean checkSum, String applicationIdentifier, int width, boolean fixedWidth, ImageScaleMode imageScaleMode, Style style) throws ColumnBuilderException, ClassNotFoundException
title - property - className - valid class names are: InputStream and java.awt.ImagebarcodeType - use constansts from BarcodeTypesshowText - checkSum - applicationIdentifier - Only for barcodeType = UCCEAN128, this value must point to a property (it register the property)width - fixedWidth - imageScaleMode - style - ColumnBuilderExceptionClassNotFoundExceptionpublic FastReportBuilder addColumn(String title, String property, String className, int width, boolean fixedWidth, String pattern) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, Class clazz, int width, boolean fixedWidth, String pattern) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, String className, int width, boolean fixedWidth, String pattern, Style style) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, Class clazz, int width, boolean fixedWidth, String pattern, Style style) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, String className, int width, boolean fixedWidth, String pattern, Style style, String fieldDescription) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, String property, Class clazz, int width, boolean fixedWidth, String pattern, Style style, String fieldDescription) throws ColumnBuilderException, ClassNotFoundException
public FastReportBuilder addColumn(String title, CustomExpression expression, int width, boolean fixedWidth, String pattern, Style style) throws ColumnBuilderException, ClassNotFoundException
protected void guessStyle(Class clazz, AbstractColumn column) throws ClassNotFoundException
ClassNotFoundExceptionprotected void guessStyle(String className, AbstractColumn column) throws ClassNotFoundException
ClassNotFoundExceptionpublic FastReportBuilder addGroups(int numgroups)
numgroups - public FastReportBuilder addGroups(int numgroups, GroupLayout gLayout)
public FastReportBuilder setGroupLayout(int groupNumber, GroupLayout layout) throws BuilderException
BuilderExceptionpublic FastReportBuilder addGlobalHeaderVariable(int colNumber, DJCalculation op, Style style)
public FastReportBuilder addHeaderVariable(int groupNum, int colNumber, DJCalculation op, Style style) throws BuilderException
BuilderExceptionpublic FastReportBuilder addHeaderVariable(int groupNum, int colNumber, DJCalculation op, Style style, DJValueFormatter valueFormatter) throws BuilderException
BuilderExceptionpublic FastReportBuilder addGlobalFooterVariable(int colNumber, DJCalculation op, Style style)
colNumber - the column number (1, 2, 3,...)op - DJCalculationstyle - OPTIONAL, may be nullpublic FastReportBuilder addFooterVariable(int groupNum, int colNumber, DJCalculation op, Style style) throws BuilderException
groupNum - the group number (1, 2, 3, ...)colNumber - the column number (1, 2, 3,...)op - DJCalculationstyle - StyleBuilderExceptionpublic FastReportBuilder addGroupVariable(String position, int groupNum, int colNumber, DJCalculation op, Style style) throws BuilderException
position - DJConstants.FOOTER or DJConstants.HEADERgroupNum - the group number (1, 2, 3, ...)colNumber - the column number (1, 2, 3,...)op - DJCalculationstyle - StyleBuilderExceptionpublic FastReportBuilder addFooterVariable(int groupNum, int colNumber, DJCalculation op, Style style, DJValueFormatter valueFormatter) throws BuilderException
groupNum - the group number (1, 2, 3, ...)colNumber - the column number (1, 2, 3,...)op - DJCalculationstyle - StylevalueFormatter - DJValueFormatterBuilderExceptionpublic FastReportBuilder addGroupVariable(String position, int groupNum, int colNumber, DJCalculation op, Style style, DJValueFormatter valueFormatter) throws BuilderException
position - DJConstants.FOOTER or DJConstants.HEADERgroupNum - the group number (1, 2, 3, ...)colNumber - the column number (1, 2, 3,...)op - DJCalculationstyle - StylevalueFormatter - DJValueFormatterBuilderExceptionpublic FastReportBuilder addHeaderCrosstab(int groupNumber, DJCrosstab djcross) throws BuilderException
BuilderExceptionpublic FastReportBuilder addFooterCrosstab(int groupNumber, DJCrosstab djcross) throws BuilderException
BuilderExceptionpublic FastReportBuilder addVariable(String name, DJCalculation calculation, CustomExpression expression)
public FastReportBuilder addVariable(String name, DJCalculation calculation, CustomExpression expression, CustomExpression initialValueExpression, DJVariableResetType resetType, int resetGroup) throws BuilderException
name - calculation - expression - initialValueExpression - resetType - resetGroup - group number used to reset (from 1 to N)BuilderExceptionCopyright © 2006–2015 FDV Solutions. All rights reserved.