Class ReportBuilder<T extends ReportBuilder<T>>
java.lang.Object
net.sf.dynamicreports.report.builder.AbstractBuilder<T,DRReport>
net.sf.dynamicreports.report.builder.ReportBuilder<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JasperReportBuilder
ReportBuilder class.
- Author:
- Ricardo Mariaca
- See Also:
-
Field Summary
Fields inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
builded
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddBackground
(ComponentBuilder<?, ?>... components) Adds components to the background band.addColumn
(ColumnBuilder<?, ?>... columns) addColumnFooter
(ComponentBuilder<?, ?>... components) Adds components to the column footer band.addColumnHeader
(ComponentBuilder<?, ?>... components) Adds components to the column header band.addDetail
(ComponentBuilder<?, ?>... components) Adds components to the detail band.addDetailFooter
(ComponentBuilder<?, ?>... components) Adds components to the detail footer band.addDetailHeader
(ComponentBuilder<?, ?>... components) Adds components to the detail header band.addDetailRowHighlighter
(ConditionalStyleBuilder... detailRowHighlighters) <U> T
addField
(String name, DRIDataType<? super U, U> dataType) addField
(FieldBuilder<?>... fields) addGroup
(GroupBuilder<?>... groups) addGroupFooter
(GroupBuilder<?> group, ComponentBuilder<?, ?>... components) Adds components to the group footer band.addGroupHeader
(GroupBuilder<?> group, ComponentBuilder<?, ?>... components) Adds components to the group header band.addLastPageFooter
(ComponentBuilder<?, ?>... components) Adds components to the last page footer band.addNoData
(ComponentBuilder<?, ?>... components) Adds components to the no data band.addPageFooter
(ComponentBuilder<?, ?>... components) Adds components to the page footer band.addPageHeader
(ComponentBuilder<?, ?>... components) Adds components to the page header band.addParameter
(String name, Class<?> valueClass) addParameter
(String name, Object value) addParameter
(ParameterBuilder<?>... parameters) addProperty
(String key, String value) addScriptlet
(DRIScriptlet... scriptlets) addSort
(SortBuilder... sorts) Adds a sort field to the datasetaddSubtotalAtColumnFooter
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtColumnHeader
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtFirstGroupFooter
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtFirstGroupHeader
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtGroupFooter
(GroupBuilder<?> group, SubtotalBuilder<?, ?>... subtotals) addSubtotalAtGroupHeader
(GroupBuilder<?> group, SubtotalBuilder<?, ?>... subtotals) addSubtotalAtLastGroupFooter
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtLastGroupHeader
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtLastPageFooter
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtPageFooter
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtPageHeader
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtSummary
(SubtotalBuilder<?, ?>... subtotals) addSubtotalAtTitle
(SubtotalBuilder<?, ?>... subtotals) addSubtotalOfPercentageAtGroupFooter
(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals) addSubtotalOfPercentageAtGroupHeader
(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals) addSummary
(ComponentBuilder<?, ?>... components) Adds components to the summary band.addTemplateStyle
(StyleBuilder... templateStyles) addTemplateStyle
(TemplateStylesBuilder... templateStyles) addTitle
(ComponentBuilder<?, ?>... components) Adds components to the title band.addVariable
(VariableBuilder<?>... variables) background
(ComponentBuilder<?, ?>... components) Adds components to the background band.columnFooter
(ComponentBuilder<?, ?>... components) Adds components to the column footer band.columnGrid
(ColumnGridComponentBuilder... components) columnGrid
(ListType type) columnGrid
(ListType type, ColumnGridComponentBuilder... components) columnHeader
(ComponentBuilder<?, ?>... components) Adds components to the column header band.columns
(ColumnBuilder<?, ?>... columns) detail
(ComponentBuilder<?, ?>... components) Adds components to the detail band.detailFooter
(ComponentBuilder<?, ?>... components) Adds components to the detail footer band.detailHeader
(ComponentBuilder<?, ?>... components) Adds components to the detail header band.detailRowHighlighters
(ConditionalStyleBuilder... detailRowHighlighters) fields
(FieldBuilder<?>... fields) Prints the column footer band at the bottom of the column.groupBy
(ValueColumnBuilder<?, ?>... groupColumns) groupBy
(GroupBuilder<?>... groups) groupFooter
(GroupBuilder<?> group, ComponentBuilder<?, ?>... components) Adds components to the group footer band.groupHeader
(GroupBuilder<?> group, ComponentBuilder<?, ?>... components) Adds components to the group header band.lastPageFooter
(ComponentBuilder<?, ?>... components) Adds components to the last page footer band.noData
(ComponentBuilder<?, ?>... components) Adds components to the no data band.pageFooter
(ComponentBuilder<?, ?>... components) Adds components to the page footer band.pageHeader
(ComponentBuilder<?, ?>... components) Adds components to the page header band.parameters
(ParameterBuilder<?>... parameters) scriptlets
(DRIScriptlet... scriptlets) setBackgroundBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setBackgroundPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setBackgroundSplitType
(SplitType splitType) Sets the background band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a background band stylesetBarcodeStyle
(ReportStyleBuilder barcodeStyle) setChartStyle
(ReportStyleBuilder chartStyle) setColumnDirection
(RunDirection columnDirection) setColumnFooterBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setColumnFooterPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setColumnFooterSplitType
(SplitType splitType) Sets the column footer band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a column footer band stylesetColumnHeaderBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setColumnHeaderPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setColumnHeaderSplitType
(SplitType splitType) Sets the column header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a column header band stylesetColumnStyle
(ReportStyleBuilder columnStyle) setColumnTitleStyle
(ReportStyleBuilder columnTitleStyle) setDefaultFont
(FontBuilder defaultFont) setDetailBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setDetailEvenRowStyle
(SimpleStyleBuilder detailEvenRowStyle) setDetailFooterBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setDetailFooterPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setDetailFooterSplitType
(SplitType splitType) Sets the detail footer band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a detail footer band stylesetDetailHeaderBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setDetailHeaderPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setDetailHeaderSplitType
(SplitType splitType) Sets the detail header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a detail header band stylesetDetailOddRowStyle
(SimpleStyleBuilder detailOddRowStyle) setDetailPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setDetailSplitType
(SplitType splitType) Sets the detail band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitsetDetailStyle
(ReportStyleBuilder style) Sets a detail band stylesetFilterExpression
(DRIExpression<Boolean> filterExpression) Sets a dataset filter expression.setFloatColumnFooter
(Boolean floatColumnFooter) Sets whether or not the column footer band is printed at the bottom of the columnsetGroupFooterBackgroundComponent
(GroupBuilder<?> group, ComponentBuilder<?, ?> backgroundComponent) setGroupFooterPrintWhenExpression
(GroupBuilder<?> group, DRIExpression<Boolean> printWhenExpression) setGroupFooterSplitType
(GroupBuilder<?> group, SplitType splitType) Sets the group footer band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitsetGroupFooterStyle
(GroupBuilder<?> group, ReportStyleBuilder style) Sets a group footer band stylesetGroupHeaderBackgroundComponent
(GroupBuilder<?> group, ComponentBuilder<?, ?> backgroundComponent) setGroupHeaderPrintWhenExpression
(GroupBuilder<?> group, DRIExpression<Boolean> printWhenExpression) setGroupHeaderSplitType
(GroupBuilder<?> group, SplitType splitType) Sets the group header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitsetGroupHeaderStyle
(GroupBuilder<?> group, ReportStyleBuilder style) Sets a group header band stylesetGroupStyle
(ReportStyleBuilder groupStyle) setGroupTitleStyle
(ReportStyleBuilder groupTitleStyle) setHighlightDetailEvenRows
(Boolean highlightDetailEvenRows) setHighlightDetailOddRows
(Boolean highlightDetailOddRows) setIgnorePageWidth
(Boolean ignorePageWidth) setIgnorePagination
(Boolean ignorePagination) setImageStyle
(ReportStyleBuilder imageStyle) setLanguage
(String language) setLastPageFooterBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setLastPageFooterPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setLastPageFooterSplitType
(SplitType splitType) Sets the last page footer band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a last page footer band stylesetNoDataBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setNoDataPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setNoDataSplitType
(SplitType splitType) Sets the no data band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitsetNoDataStyle
(ReportStyleBuilder style) Sets a no data band stylesetPageColumnSpace
(Integer columnSpace) setPageColumnsPerPage
(Integer columnsPerPage) setPageFooterBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setPageFooterPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setPageFooterSplitType
(SplitType splitType) Sets the page footer band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a page footer band stylesetPageFormat
(Integer width, Integer height, PageOrientation orientation) setPageFormat
(PageType pageType) setPageFormat
(PageType pageType, PageOrientation orientation) setPageHeaderBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setPageHeaderPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setPageHeaderSplitType
(SplitType splitType) Sets the page header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a page header band stylesetPageMargin
(MarginBuilder margin) setParameter
(String name, Object value) setParameters
(Map<String, Object> parameters) setPrintOrder
(Orientation printOrder) setProperties
(Properties properties) setQuery
(QueryBuilder query) setReportName
(String reportName) setResourceBundle
(String resourceBundleName) setResourceBundle
(ResourceBundle resourceBundle) setShowColumnTitle
(Boolean showColumnTitle) setShowColumnValues
(Boolean showColumnValues) setSubtotalStyle
(ReportStyleBuilder subtotalStyle) setSummaryBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setSummaryOnANewPage
(Boolean summaryOnANewPage) Sets whether or not the summary band is printed on a separate page.setSummaryPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setSummarySplitType
(SplitType splitType) Sets the summary band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitSets a summary band stylesetSummaryWithPageHeaderAndFooter
(Boolean summaryWithPageHeaderAndFooter) Sets whether or not the summary band is printed with the page header and footer.setTableOfContents
(Boolean tableOfContents) setTableOfContents
(TableOfContentsCustomizerBuilder tableOfContentsCustomizer) setTableOfContents
(DRITableOfContentsCustomizer tableOfContentsCustomizer) setTemplate
(ReportTemplateBuilder template) setTextStyle
(ReportStyleBuilder textStyle) setTitleBackgroundComponent
(ComponentBuilder<?, ?> backgroundComponent) setTitleOnANewPage
(Boolean titleOnANewPage) Sets whether or not the title band is printed on a separate page.setTitlePrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) setTitleSplitType
(SplitType splitType) Sets the title band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be splitsetTitleStyle
(ReportStyleBuilder style) Sets a title band stylesetUseFieldNameAsDescription
(Boolean useFieldNameAsDescription) setWhenNoDataType
(WhenNoDataType whenNoDataType) setWhenResourceMissingType
(WhenResourceMissingType whenResourceMissingType) sortBy
(TextColumnBuilder<?>... sortColumns) Adds a sort field to the datasetsortBy
(SortBuilder... sorts) Adds a sort field to the datasetsubtotalsAtColumnFooter
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtColumnHeader
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtFirstGroupFooter
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtFirstGroupHeader
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtGroupFooter
(GroupBuilder<?> group, SubtotalBuilder<?, ?>... subtotals) subtotalsAtGroupHeader
(GroupBuilder<?> group, SubtotalBuilder<?, ?>... subtotals) subtotalsAtLastGroupFooter
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtLastGroupHeader
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtLastPageFooter
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtPageFooter
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtPageHeader
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtSummary
(SubtotalBuilder<?, ?>... subtotals) subtotalsAtTitle
(SubtotalBuilder<?, ?>... subtotals) subtotalsOfPercentageAtGroupFooter
(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals) subtotalsOfPercentageAtGroupHeader
(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals) summary
(ComponentBuilder<?, ?>... components) Adds components to the summary band.Prints the summary band on a separate page.Prints the summary band with the page header and footer.tableOfContents
(TableOfContentsCustomizerBuilder tableOfContentsCustomizer) tableOfContents
(DRITableOfContentsCustomizer tableOfContentsCustomizer) templateStyles
(StyleBuilder... templateStyles) templateStyles
(TemplateStylesBuilder... templateStyles) title
(ComponentBuilder<?, ?>... components) Adds components to the title band.Prints the title band on a separate page.variables
(VariableBuilder<?>... variables) Methods inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
build, configure, getObject
-
Constructor Details
-
ReportBuilder
public ReportBuilder()
-
-
Method Details
-
setReportName
-
setLocale
-
setResourceBundle
-
setResourceBundle
-
setShowColumnTitle
-
setShowColumnValues
-
setPageFormat
-
setPageFormat
-
setPageFormat
-
setPageMargin
-
setPageColumnsPerPage
-
setPageColumnSpace
-
ignorePageWidth
-
setIgnorePageWidth
-
ignorePagination
-
setIgnorePagination
-
setWhenNoDataType
-
setWhenResourceMissingType
-
titleOnANewPage
Prints the title band on a separate page.- Returns:
- a report builder
-
setTitleOnANewPage
Sets whether or not the title band is printed on a separate page.- Parameters:
titleOnANewPage
- print the title band on a separate page- Returns:
- a report builder
-
summaryOnANewPage
Prints the summary band on a separate page.- Returns:
- a report builder
-
setSummaryOnANewPage
Sets whether or not the summary band is printed on a separate page.- Parameters:
summaryOnANewPage
- print the summary band on a separate page- Returns:
- a report builder
-
setPrintOrder
-
setColumnDirection
-
setLanguage
-
setUseFieldNameAsDescription
-
scriptlets
-
addScriptlet
-
setProperties
-
addProperty
-
setQuery
-
setQuery
-
setQuery
-
columnGrid
-
columnGrid
-
columnGrid
-
setTemplate
-
templateStyles
-
addTemplateStyle
-
templateStyles
-
addTemplateStyle
-
parameters
-
addParameter
-
addParameter
-
addParameter
-
setParameter
-
setParameters
-
fields
-
addField
-
addField
-
addField
-
variables
-
addVariable
-
sortBy
Adds a sort field to the dataset- Parameters:
sortColumns
- columns to be sorted- Returns:
- a report builder
-
sortBy
Adds a sort field to the dataset- Parameters:
sorts
- the sort definitions- Returns:
- a report builder
-
addSort
Adds a sort field to the dataset- Parameters:
sorts
- the sort definitions- Returns:
- a report builder
-
columns
-
addColumn
-
setDefaultFont
-
setTextStyle
-
setColumnTitleStyle
-
setColumnStyle
-
setGroupTitleStyle
-
setGroupStyle
-
setSubtotalStyle
-
setImageStyle
-
setChartStyle
-
setBarcodeStyle
-
highlightDetailOddRows
-
setHighlightDetailOddRows
-
setDetailOddRowStyle
-
highlightDetailEvenRows
-
setHighlightDetailEvenRows
-
setDetailEvenRowStyle
-
detailRowHighlighters
-
addDetailRowHighlighter
-
subtotalsAtTitle
-
addSubtotalAtTitle
-
subtotalsAtPageHeader
-
addSubtotalAtPageHeader
-
subtotalsAtColumnHeader
-
addSubtotalAtColumnHeader
-
subtotalsAtGroupHeader
-
addSubtotalAtGroupHeader
-
subtotalsAtFirstGroupHeader
-
addSubtotalAtFirstGroupHeader
-
subtotalsAtLastGroupHeader
-
addSubtotalAtLastGroupHeader
-
subtotalsAtSummary
-
addSubtotalAtSummary
-
subtotalsOfPercentageAtGroupHeader
public T subtotalsOfPercentageAtGroupHeader(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals) -
addSubtotalOfPercentageAtGroupHeader
public T addSubtotalOfPercentageAtGroupHeader(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals) -
groupBy
-
groupBy
-
addGroup
-
tableOfContents
-
tableOfContents
-
tableOfContents
-
setTableOfContents
-
setTableOfContents
-
setTableOfContents
-
setFilterExpression
Sets a dataset filter expression. The expression must be a type of Boolean- Parameters:
filterExpression
- the filter expression- Returns:
- a report builder
-
setTitleSplitType
Sets the title band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the title split type- Returns:
- a report builder
-
setTitlePrintWhenExpression
-
setTitleStyle
Sets a title band style- Parameters:
style
- the title band style- Returns:
- a report builder
-
setTitleBackgroundComponent
-
title
Adds components to the title band. The band is printed on the first page and only once.- Parameters:
components
- the title components- Returns:
- a report builder
-
addTitle
Adds components to the title band. The band is printed on the first page and only once.- Parameters:
components
- the title components- Returns:
- a report builder
-
setPageHeaderSplitType
Sets the page header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the page header split type- Returns:
- a report builder
-
setPageHeaderPrintWhenExpression
-
setPageHeaderStyle
Sets a page header band style- Parameters:
style
- the page header band style- Returns:
- a report builder
-
setPageHeaderBackgroundComponent
-
pageHeader
Adds components to the page header band. The band is printed on each page at the top of the page.- Parameters:
components
- the page header components- Returns:
- a report builder
-
addPageHeader
Adds components to the page header band. The band is printed on each page at the top of the page.- Parameters:
components
- the page header components- Returns:
- a report builder
-
setColumnHeaderSplitType
Sets the column header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the column header split type- Returns:
- a report builder
-
setColumnHeaderPrintWhenExpression
-
setColumnHeaderStyle
Sets a column header band style- Parameters:
style
- the column header band style- Returns:
- a report builder
-
setColumnHeaderBackgroundComponent
-
columnHeader
Adds components to the column header band. The band is printed on each page at the top of the page and it's placed below the page header band.- Parameters:
components
- the column header components- Returns:
- a report builder
-
addColumnHeader
Adds components to the column header band. The band is printed on each page at the top of the page and it's placed below the page header band.- Parameters:
components
- the column header components- Returns:
- a report builder
-
setGroupHeaderSplitType
Sets the group header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
group
- the group to which to apply the split typesplitType
- the group header split type- Returns:
- a report builder
-
setGroupHeaderPrintWhenExpression
public T setGroupHeaderPrintWhenExpression(GroupBuilder<?> group, DRIExpression<Boolean> printWhenExpression) -
setGroupHeaderStyle
Sets a group header band style- Parameters:
group
- the group to which to apply the stylestyle
- the group header band style- Returns:
- a report builder
-
setGroupHeaderBackgroundComponent
public T setGroupHeaderBackgroundComponent(GroupBuilder<?> group, ComponentBuilder<?, ?> backgroundComponent) -
groupHeader
Adds components to the group header band. The band is printed for each data group. It's placed above the grouped data and between the column header and footer.- Parameters:
group
- the group to which to add the componentscomponents
- the group header components- Returns:
- a report builder
-
addGroupHeader
Adds components to the group header band. The band is printed for each data group. It's placed above the grouped data and between the column header and footer.- Parameters:
group
- the group to which to add the componentscomponents
- the group header components- Returns:
- a report builder
-
setDetailSplitType
Sets the detail band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the detail split type- Returns:
- a report builder
-
setDetailPrintWhenExpression
-
setDetailStyle
Sets a detail band style- Parameters:
style
- the detail band style- Returns:
- a report builder
-
setDetailBackgroundComponent
-
detail
Adds components to the detail band. The band is printed for each record row in the data source and it's placed between the column header and footer band.- Parameters:
components
- the detail components- Returns:
- a report builder
-
addDetail
Adds components to the detail band. The band is printed for each record row in the data source and it's placed between the column header and footer band.- Parameters:
components
- the detail components- Returns:
- a report builder
-
setDetailHeaderSplitType
Sets the detail header band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the detail header split type- Returns:
- a report builder
-
setDetailHeaderPrintWhenExpression
-
setDetailHeaderStyle
Sets a detail header band style- Parameters:
style
- the detail header band style- Returns:
- a report builder
-
setDetailHeaderBackgroundComponent
-
detailHeader
Adds components to the detail header band. The band is printed for each record row in the data source and it's placed above the detail band.- Parameters:
components
- the detail header components- Returns:
- a report builder
-
addDetailHeader
Adds components to the detail header band. The band is printed for each record row in the data source and it's placed above the detail band.- Parameters:
components
- the detail header components- Returns:
- a report builder
-
setSummarySplitType
Sets the summary band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the summary split type- Returns:
- a report builder
-
setSummaryPrintWhenExpression
-
setSummaryStyle
Sets a summary band style- Parameters:
style
- the summary band style- Returns:
- a report builder
-
setSummaryBackgroundComponent
-
summary
Adds components to the summary band. The band is printed on the last page and only once.- Parameters:
components
- the summary components- Returns:
- a report builder
-
addSummary
Adds components to the summary band. The band is printed on the last page and only once.- Parameters:
components
- the summary components- Returns:
- a report builder
-
setNoDataSplitType
Sets the no data band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the no data split type- Returns:
- a report builder
-
setNoDataPrintWhenExpression
-
setNoDataStyle
Sets a no data band style- Parameters:
style
- the no data band style- Returns:
- a report builder
-
setNoDataBackgroundComponent
-
noData
Adds components to the no data band. The band is printed only when the data source is empty. It's used to show the information that there are not any data in the report.- Parameters:
components
- the no data components- Returns:
- a report builder
-
addNoData
Adds components to the no data band. The band is printed only when the data source is empty. It's used to show the information that there are not any data in the report.- Parameters:
components
- the no data components- Returns:
- a report builder
-
setBackgroundSplitType
Sets the background band split type.
SplitType.PREVENT - prevents the band from splitting
SplitType.STRETCH - the band can be split, but never within its declared height
SplitType.IMMEDIATE - the band can be split- Parameters:
splitType
- the background split type- Returns:
- a report builder
-
setBackgroundPrintWhenExpression
-
setBackgroundStyle
Sets a background band style- Parameters:
style
- the background band style- Returns:
- a report builder
-
setBackgroundBackgroundComponent
-
background
Adds components to the background band. The band is printed on each page. It's mostly used for adding watermarks to the report.- Parameters:
components
- the background components- Returns:
- a report builder
-
addBackground
Adds components to the background band. The band is printed on each page. It's mostly used for adding watermarks to the report.- Parameters:
components
- the background components- Returns:
- a report builder
-
getReport
-