All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.dynamicreports.report.base.DRReport Maven / Gradle / Ivy

Go to download

DynamicReports is an open source Java reporting library based on JasperReports. It allows to create dynamic report designs and it doesn't need a visual report designer. You can very quickly create reports and produce documents that can be displayed, printed or exported into many popular formats such as PDF, Excel, Word and others.

The newest version!
/*
 * DynamicReports - Free Java reporting library for creating reports dynamically
 *
 * Copyright (C) 2010 - 2018 Ricardo Mariaca and the Dynamic Reports Contributors
 *
 * This file is part of DynamicReports.
 *
 * DynamicReports is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DynamicReports is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with DynamicReports. If not, see .
 */
package net.sf.dynamicreports.report.base;

import net.sf.dynamicreports.report.base.column.DRColumn;
import net.sf.dynamicreports.report.base.grid.DRColumnGrid;
import net.sf.dynamicreports.report.base.style.DRConditionalStyle;
import net.sf.dynamicreports.report.base.style.DRSimpleStyle;
import net.sf.dynamicreports.report.constant.Constants;
import net.sf.dynamicreports.report.constant.Orientation;
import net.sf.dynamicreports.report.constant.RunDirection;
import net.sf.dynamicreports.report.constant.WhenNoDataType;
import net.sf.dynamicreports.report.constant.WhenResourceMissingType;
import net.sf.dynamicreports.report.definition.DRIReport;
import net.sf.dynamicreports.report.definition.DRIScriptlet;
import net.sf.dynamicreports.report.definition.DRITableOfContentsCustomizer;
import net.sf.dynamicreports.report.definition.DRITemplateDesign;
import net.sf.dynamicreports.report.definition.expression.DRIExpression;
import net.sf.dynamicreports.report.definition.style.DRIFont;
import net.sf.dynamicreports.report.definition.style.DRIReportStyle;
import net.sf.dynamicreports.report.definition.style.DRIStyle;
import org.apache.commons.lang3.Validate;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.ResourceBundle;

/**
 * 

DRReport class.

* * @author Ricardo Mariaca * */ public class DRReport implements DRIReport { private static final long serialVersionUID = Constants.SERIAL_VERSION_UID; private DRReportTemplate template; private List templateStyles; private DRITemplateDesign templateDesign; private String reportName; private Locale locale; private ResourceBundle resourceBundle; private String resourceBundleName; private Boolean ignorePagination; private Boolean showColumnTitle; private Boolean showColumnValues; private List> columns; private List groups; private List> subtotals; private List> fields; private List> variables; private List sorts; private List> parameters; private Map parameterValues; private List scriptlets; private Properties properties; private DRQuery query; private DRPage page; private WhenNoDataType whenNoDataType; private WhenResourceMissingType whenResourceMissingType; private Boolean titleOnANewPage; private Boolean summaryOnANewPage; private Boolean summaryWithPageHeaderAndFooter; private Boolean floatColumnFooter; private Orientation printOrder; private RunDirection columnDirection; private String language; private Boolean useFieldNameAsDescription; private Boolean highlightDetailOddRows; private DRSimpleStyle detailOddRowStyle; private Boolean highlightDetailEvenRows; private DRSimpleStyle detailEvenRowStyle; private List detailRowHighlighters; private DRColumnGrid columnGrid; private Boolean tableOfContents; private DRITableOfContentsCustomizer tableOfContentsCustomizer; private DRIExpression filterExpression; private DRIFont defaultFont; private DRIReportStyle textStyle; private DRIReportStyle columnTitleStyle; private DRIReportStyle columnStyle; private DRIReportStyle groupTitleStyle; private DRIReportStyle groupStyle; private DRIReportStyle subtotalStyle; private DRIReportStyle imageStyle; private DRIReportStyle chartStyle; private DRIReportStyle barcodeStyle; private DRBand titleBand; private DRBand pageHeaderBand; private DRBand pageFooterBand; private DRBand columnHeaderBand; private DRBand columnFooterBand; private DRBand detailBand; private DRBand detailHeaderBand; private DRBand detailFooterBand; private DRBand lastPageFooterBand; private DRBand summaryBand; private DRBand noDataBand; private DRBand backgroundBand; /** *

Constructor for DRReport.

*/ public DRReport() { init(); } private void init() { this.template = new DRReportTemplate(); this.templateStyles = new ArrayList(); this.columns = new ArrayList>(); this.groups = new ArrayList(); this.subtotals = new ArrayList>(); this.fields = new ArrayList>(); this.variables = new ArrayList>(); this.sorts = new ArrayList(); this.parameters = new ArrayList>(); this.scriptlets = new ArrayList(); this.detailRowHighlighters = new ArrayList(); this.properties = new Properties(); this.page = new DRPage(); titleBand = new DRBand(); pageHeaderBand = new DRBand(); pageFooterBand = new DRBand(); columnHeaderBand = new DRBand(); columnFooterBand = new DRBand(); detailBand = new DRBand(); detailHeaderBand = new DRBand(); detailFooterBand = new DRBand(); lastPageFooterBand = new DRBand(); summaryBand = new DRBand(); noDataBand = new DRBand(); backgroundBand = new DRBand(); } /** {@inheritDoc} */ @Override public DRReportTemplate getTemplate() { return template; } /** *

Setter for the field template.

* * @param template a {@link net.sf.dynamicreports.report.base.DRReportTemplate} object. */ public void setTemplate(DRReportTemplate template) { Validate.notNull(template, "template must not be null"); this.template = template; } /** {@inheritDoc} */ @Override public List getTemplateStyles() { return templateStyles; } /** *

Setter for the field templateStyles.

* * @param templateStyles a {@link java.util.List} object. */ public void setTemplateStyles(List templateStyles) { this.templateStyles = templateStyles; } /** *

addTemplateStyle.

* * @param templateStyle a {@link net.sf.dynamicreports.report.definition.style.DRIStyle} object. */ public void addTemplateStyle(DRIStyle templateStyle) { Validate.notNull(templateStyle, "templateStyle must not be null"); Validate.notNull(templateStyle.getName(), "templateStyle name must not be null"); this.templateStyles.add(templateStyle); } /** {@inheritDoc} */ @Override public DRITemplateDesign getTemplateDesign() { return templateDesign; } /** *

Setter for the field templateDesign.

* * @param templateDesign a {@link net.sf.dynamicreports.report.definition.DRITemplateDesign} object. */ public void setTemplateDesign(DRITemplateDesign templateDesign) { Validate.notNull(templateDesign, "templateDesign must not be null"); this.templateDesign = templateDesign; } /** {@inheritDoc} */ @Override public String getReportName() { return reportName; } /** *

Setter for the field reportName.

* * @param reportName a {@link java.lang.String} object. */ public void setReportName(String reportName) { this.reportName = reportName; } /** {@inheritDoc} */ @Override public Locale getLocale() { return locale; } /** *

Setter for the field locale.

* * @param locale a {@link java.util.Locale} object. */ public void setLocale(Locale locale) { this.locale = locale; } /** {@inheritDoc} */ @Override public ResourceBundle getResourceBundle() { return resourceBundle; } /** *

Setter for the field resourceBundle.

* * @param resourceBundle a {@link java.util.ResourceBundle} object. */ public void setResourceBundle(ResourceBundle resourceBundle) { this.resourceBundle = resourceBundle; } /** {@inheritDoc} */ @Override public String getResourceBundleName() { return resourceBundleName; } /** *

Setter for the field resourceBundleName.

* * @param resourceBundleName a {@link java.lang.String} object. */ public void setResourceBundleName(String resourceBundleName) { this.resourceBundleName = resourceBundleName; } /** {@inheritDoc} */ @Override public Boolean getShowColumnTitle() { return showColumnTitle; } /** *

Setter for the field showColumnTitle.

* * @param showColumnTitle a {@link java.lang.Boolean} object. */ public void setShowColumnTitle(Boolean showColumnTitle) { this.showColumnTitle = showColumnTitle; } /** {@inheritDoc} */ @Override public Boolean getShowColumnValues() { return showColumnValues; } /** *

Setter for the field showColumnValues.

* * @param showColumnValues a {@link java.lang.Boolean} object. */ public void setShowColumnValues(Boolean showColumnValues) { this.showColumnValues = showColumnValues; } /** {@inheritDoc} */ @Override public List> getColumns() { return columns; } /** *

Setter for the field columns.

* * @param columns a {@link java.util.List} object. */ public void setColumns(List> columns) { Validate.notNull(columns, "columns must not be null"); Validate.noNullElements(columns, "columns must not contains null column"); this.columns = columns; } /** *

addColumn.

* * @param column a {@link net.sf.dynamicreports.report.base.column.DRColumn} object. */ public void addColumn(DRColumn column) { Validate.notNull(column, "column must not be null"); this.columns.add(column); } /** {@inheritDoc} */ @Override public List getGroups() { return groups; } /** *

Setter for the field groups.

* * @param groups a {@link java.util.List} object. */ public void setGroups(List groups) { Validate.notNull(groups, "groups must not be null"); Validate.noNullElements(groups, "groups must not contains null group"); this.groups = groups; } /** *

addGroup.

* * @param group a {@link net.sf.dynamicreports.report.base.DRGroup} object. */ public void addGroup(DRGroup group) { Validate.notNull(group, "group must not be null"); this.groups.add(group); } /** {@inheritDoc} */ @Override public List> getFields() { return fields; } /** *

Setter for the field fields.

* * @param fields a {@link java.util.List} object. */ public void setFields(List> fields) { Validate.notNull(fields, "fields must not be null"); Validate.noNullElements(fields, "fields must not contains null field"); this.fields = fields; } /** *

addField.

* * @param field a {@link net.sf.dynamicreports.report.base.DRField} object. */ public void addField(DRField field) { Validate.notNull(field, "field must not be null"); this.fields.add(field); } /** {@inheritDoc} */ @Override public List> getVariables() { return variables; } /** *

Setter for the field variables.

* * @param variables a {@link java.util.List} object. */ public void setVariables(List> variables) { Validate.notNull(variables, "variables must not be null"); Validate.noNullElements(variables, "variables must not contains null variable"); this.variables = variables; } /** *

addVariable.

* * @param variable a {@link net.sf.dynamicreports.report.base.DRVariable} object. */ public void addVariable(DRVariable variable) { Validate.notNull(variable, "variable must not be null"); this.variables.add(variable); } /** {@inheritDoc} */ @Override public List getSorts() { return sorts; } /** *

Setter for the field sorts.

* * @param sorts a {@link java.util.List} object. */ public void setSorts(List sorts) { Validate.notNull(sorts, "sorts must not be null"); Validate.noNullElements(sorts, "sorts must not contains null sort"); this.sorts = sorts; } /** *

addSort.

* * @param sort a {@link net.sf.dynamicreports.report.base.DRSort} object. */ public void addSort(DRSort sort) { Validate.notNull(sort, "sort must not be null"); this.sorts.add(sort); } /** {@inheritDoc} */ @Override public List> getSubtotals() { return subtotals; } /** *

Setter for the field subtotals.

* * @param subtotals a {@link java.util.List} object. */ public void setSubtotals(List> subtotals) { Validate.notNull(subtotals, "subtotals must not be null"); Validate.noNullElements(subtotals, "subtotals must not contains null subtotal"); this.subtotals = subtotals; } /** *

addSubtotal.

* * @param subtotal a {@link net.sf.dynamicreports.report.base.DRSubtotal} object. */ public void addSubtotal(DRSubtotal subtotal) { Validate.notNull(subtotal, "subtotal must not be null"); this.subtotals.add(subtotal); } /** {@inheritDoc} */ @Override public List> getParameters() { return parameters; } /** *

Setter for the field parameters.

* * @param parameters a {@link java.util.List} object. */ public void setParameters(List> parameters) { Validate.notNull(parameters, "parameters must not be null"); Validate.noNullElements(parameters, "parameters must not contains null parameter"); this.parameters = parameters; } /** *

addParameter.

* * @param parameter a {@link net.sf.dynamicreports.report.base.DRParameter} object. */ public void addParameter(DRParameter parameter) { Validate.notNull(parameter, "parameter must not be null"); this.parameters.add(parameter); } /** {@inheritDoc} */ @Override public Map getParameterValues() { return parameterValues; } /** *

Setter for the field parameterValues.

* * @param parameterValues a {@link java.util.Map} object. */ public void setParameterValues(Map parameterValues) { this.parameterValues = parameterValues; } /** *

addParameterValue.

* * @param name a {@link java.lang.String} object. * @param value a {@link java.lang.Object} object. */ public void addParameterValue(String name, Object value) { Validate.notNull(name, "parameter name must not be null"); if (parameterValues == null) { parameterValues = new HashMap(); } this.parameterValues.put(name, value); } /** {@inheritDoc} */ @Override public List getScriptlets() { return scriptlets; } /** *

Setter for the field scriptlets.

* * @param scriptlets a {@link java.util.List} object. */ public void setScriptlets(List scriptlets) { Validate.notNull(scriptlets, "scriptlets must not be null"); Validate.noNullElements(scriptlets, "scriptlets must not contains null scriptlet"); this.scriptlets = scriptlets; } /** *

addScriptlet.

* * @param scriptlet a {@link net.sf.dynamicreports.report.definition.DRIScriptlet} object. */ public void addScriptlet(DRIScriptlet scriptlet) { Validate.notNull(scriptlet, "scriptlet must not be null"); this.scriptlets.add(scriptlet); } /** {@inheritDoc} */ @Override public Properties getProperties() { return properties; } /** *

Setter for the field properties.

* * @param properties a {@link java.util.Properties} object. */ public void setProperties(Properties properties) { Validate.notNull(properties, "properties must not be null"); this.properties = properties; } /** *

addProperty.

* * @param key a {@link java.lang.String} object. * @param value a {@link java.lang.String} object. */ public void addProperty(String key, String value) { Validate.notNull(key, "key must not be null"); this.properties.setProperty(key, value); } /** {@inheritDoc} */ @Override public DRQuery getQuery() { return query; } /** *

Setter for the field query.

* * @param query a {@link net.sf.dynamicreports.report.base.DRQuery} object. */ public void setQuery(DRQuery query) { this.query = query; } /** {@inheritDoc} */ @Override public DRPage getPage() { return page; } /** *

Setter for the field page.

* * @param page a {@link net.sf.dynamicreports.report.base.DRPage} object. */ public void setPage(DRPage page) { Validate.notNull(page, "page must not be null"); this.page = page; } /** {@inheritDoc} */ @Override public Boolean getIgnorePagination() { return ignorePagination; } /** *

Setter for the field ignorePagination.

* * @param ignorePagination a {@link java.lang.Boolean} object. */ public void setIgnorePagination(Boolean ignorePagination) { this.ignorePagination = ignorePagination; } /** {@inheritDoc} */ @Override public WhenNoDataType getWhenNoDataType() { return whenNoDataType; } /** *

Setter for the field whenNoDataType.

* * @param whenNoDataType a {@link net.sf.dynamicreports.report.constant.WhenNoDataType} object. */ public void setWhenNoDataType(WhenNoDataType whenNoDataType) { this.whenNoDataType = whenNoDataType; } /** {@inheritDoc} */ @Override public WhenResourceMissingType getWhenResourceMissingType() { return whenResourceMissingType; } /** *

Setter for the field whenResourceMissingType.

* * @param whenResourceMissingType a {@link net.sf.dynamicreports.report.constant.WhenResourceMissingType} object. */ public void setWhenResourceMissingType(WhenResourceMissingType whenResourceMissingType) { this.whenResourceMissingType = whenResourceMissingType; } /** {@inheritDoc} */ @Override public Boolean getTitleOnANewPage() { return titleOnANewPage; } /** *

Setter for the field titleOnANewPage.

* * @param titleOnANewPage a {@link java.lang.Boolean} object. */ public void setTitleOnANewPage(Boolean titleOnANewPage) { this.titleOnANewPage = titleOnANewPage; } /** {@inheritDoc} */ @Override public Boolean getSummaryOnANewPage() { return summaryOnANewPage; } /** *

Setter for the field summaryOnANewPage.

* * @param summaryOnANewPage a {@link java.lang.Boolean} object. */ public void setSummaryOnANewPage(Boolean summaryOnANewPage) { this.summaryOnANewPage = summaryOnANewPage; } /** {@inheritDoc} */ @Override public Boolean getSummaryWithPageHeaderAndFooter() { return summaryWithPageHeaderAndFooter; } /** *

Setter for the field summaryWithPageHeaderAndFooter.

* * @param summaryWithPageHeaderAndFooter a {@link java.lang.Boolean} object. */ public void setSummaryWithPageHeaderAndFooter(Boolean summaryWithPageHeaderAndFooter) { this.summaryWithPageHeaderAndFooter = summaryWithPageHeaderAndFooter; } /** {@inheritDoc} */ @Override public Boolean getFloatColumnFooter() { return floatColumnFooter; } /** *

Setter for the field floatColumnFooter.

* * @param floatColumnFooter a {@link java.lang.Boolean} object. */ public void setFloatColumnFooter(Boolean floatColumnFooter) { this.floatColumnFooter = floatColumnFooter; } /** {@inheritDoc} */ @Override public Orientation getPrintOrder() { return printOrder; } /** *

Setter for the field printOrder.

* * @param printOrder a {@link net.sf.dynamicreports.report.constant.Orientation} object. */ public void setPrintOrder(Orientation printOrder) { this.printOrder = printOrder; } /** {@inheritDoc} */ @Override public RunDirection getColumnDirection() { return columnDirection; } /** *

Setter for the field columnDirection.

* * @param columnDirection a {@link net.sf.dynamicreports.report.constant.RunDirection} object. */ public void setColumnDirection(RunDirection columnDirection) { this.columnDirection = columnDirection; } /** {@inheritDoc} */ @Override public String getLanguage() { return language; } /** *

Setter for the field language.

* * @param language a {@link java.lang.String} object. */ public void setLanguage(String language) { this.language = language; } /** {@inheritDoc} */ @Override public Boolean getUseFieldNameAsDescription() { return useFieldNameAsDescription; } /** *

Setter for the field useFieldNameAsDescription.

* * @param useFieldNameAsDescription a {@link java.lang.Boolean} object. */ public void setUseFieldNameAsDescription(Boolean useFieldNameAsDescription) { this.useFieldNameAsDescription = useFieldNameAsDescription; } /** {@inheritDoc} */ @Override public DRIFont getDefaultFont() { return defaultFont; } /** *

Setter for the field defaultFont.

* * @param defaultFont a {@link net.sf.dynamicreports.report.definition.style.DRIFont} object. */ public void setDefaultFont(DRIFont defaultFont) { this.defaultFont = defaultFont; } /** {@inheritDoc} */ @Override public DRIReportStyle getTextStyle() { return textStyle; } /** *

Setter for the field textStyle.

* * @param textStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setTextStyle(DRIReportStyle textStyle) { this.textStyle = textStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getColumnTitleStyle() { return columnTitleStyle; } /** *

Setter for the field columnTitleStyle.

* * @param columnTitleStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setColumnTitleStyle(DRIReportStyle columnTitleStyle) { this.columnTitleStyle = columnTitleStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getColumnStyle() { return columnStyle; } /** *

Setter for the field columnStyle.

* * @param columnStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setColumnStyle(DRIReportStyle columnStyle) { this.columnStyle = columnStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getGroupTitleStyle() { return groupTitleStyle; } /** *

Setter for the field groupTitleStyle.

* * @param groupTitleStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setGroupTitleStyle(DRIReportStyle groupTitleStyle) { this.groupTitleStyle = groupTitleStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getGroupStyle() { return groupStyle; } /** *

Setter for the field groupStyle.

* * @param groupStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setGroupStyle(DRIReportStyle groupStyle) { this.groupStyle = groupStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getSubtotalStyle() { return subtotalStyle; } /** *

Setter for the field subtotalStyle.

* * @param subtotalStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setSubtotalStyle(DRIReportStyle subtotalStyle) { this.subtotalStyle = subtotalStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getImageStyle() { return imageStyle; } /** *

Setter for the field imageStyle.

* * @param imageStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setImageStyle(DRIReportStyle imageStyle) { this.imageStyle = imageStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getChartStyle() { return chartStyle; } /** *

Setter for the field chartStyle.

* * @param chartStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setChartStyle(DRIReportStyle chartStyle) { this.chartStyle = chartStyle; } /** {@inheritDoc} */ @Override public DRIReportStyle getBarcodeStyle() { return barcodeStyle; } /** *

Setter for the field barcodeStyle.

* * @param barcodeStyle a {@link net.sf.dynamicreports.report.definition.style.DRIReportStyle} object. */ public void setBarcodeStyle(DRIReportStyle barcodeStyle) { this.barcodeStyle = barcodeStyle; } /** {@inheritDoc} */ @Override public Boolean getHighlightDetailOddRows() { return highlightDetailOddRows; } /** *

Setter for the field highlightDetailOddRows.

* * @param highlightDetailOddRows a {@link java.lang.Boolean} object. */ public void setHighlightDetailOddRows(Boolean highlightDetailOddRows) { this.highlightDetailOddRows = highlightDetailOddRows; } /** {@inheritDoc} */ @Override public DRSimpleStyle getDetailOddRowStyle() { return detailOddRowStyle; } /** *

Setter for the field detailOddRowStyle.

* * @param detailOddRowStyle a {@link net.sf.dynamicreports.report.base.style.DRSimpleStyle} object. */ public void setDetailOddRowStyle(DRSimpleStyle detailOddRowStyle) { this.detailOddRowStyle = detailOddRowStyle; } /** {@inheritDoc} */ @Override public Boolean getHighlightDetailEvenRows() { return highlightDetailEvenRows; } /** *

Setter for the field highlightDetailEvenRows.

* * @param highlightDetailEvenRows a {@link java.lang.Boolean} object. */ public void setHighlightDetailEvenRows(Boolean highlightDetailEvenRows) { this.highlightDetailEvenRows = highlightDetailEvenRows; } /** {@inheritDoc} */ @Override public DRSimpleStyle getDetailEvenRowStyle() { return detailEvenRowStyle; } /** *

Setter for the field detailEvenRowStyle.

* * @param detailEvenRowStyle a {@link net.sf.dynamicreports.report.base.style.DRSimpleStyle} object. */ public void setDetailEvenRowStyle(DRSimpleStyle detailEvenRowStyle) { this.detailEvenRowStyle = detailEvenRowStyle; } /** {@inheritDoc} */ @Override public List getDetailRowHighlighters() { return detailRowHighlighters; } /** *

Setter for the field detailRowHighlighters.

* * @param detailRowHighlighters a {@link java.util.List} object. */ public void setDetailRowHighlighters(List detailRowHighlighters) { Validate.notNull(detailRowHighlighters, "detailRowHighlighters must not be null"); Validate.noNullElements(detailRowHighlighters, "detailRowHighlighters must not contains null detailRowHighlighter"); this.detailRowHighlighters = detailRowHighlighters; } /** *

addDetailRowHighlighter.

* * @param detailRowHighlighter a {@link net.sf.dynamicreports.report.base.style.DRConditionalStyle} object. */ public void addDetailRowHighlighter(DRConditionalStyle detailRowHighlighter) { Validate.notNull(detailRowHighlighter, "detailRowHighlighter must not be null"); this.detailRowHighlighters.add(detailRowHighlighter); } /** {@inheritDoc} */ @Override public DRColumnGrid getColumnGrid() { return columnGrid; } /** *

Setter for the field columnGrid.

* * @param columnGrid a {@link net.sf.dynamicreports.report.base.grid.DRColumnGrid} object. */ public void setColumnGrid(DRColumnGrid columnGrid) { this.columnGrid = columnGrid; } /** {@inheritDoc} */ @Override public Boolean getTableOfContents() { return tableOfContents; } /** *

Setter for the field tableOfContents.

* * @param tableOfContents a {@link java.lang.Boolean} object. */ public void setTableOfContents(Boolean tableOfContents) { this.tableOfContents = tableOfContents; } /** {@inheritDoc} */ @Override public DRITableOfContentsCustomizer getTableOfContentsCustomizer() { return tableOfContentsCustomizer; } /** *

Setter for the field tableOfContentsCustomizer.

* * @param tableOfContentsCustomizer a {@link net.sf.dynamicreports.report.definition.DRITableOfContentsCustomizer} object. */ public void setTableOfContentsCustomizer(DRITableOfContentsCustomizer tableOfContentsCustomizer) { this.tableOfContentsCustomizer = tableOfContentsCustomizer; } /** {@inheritDoc} */ @Override public DRIExpression getFilterExpression() { return filterExpression; } /** *

Setter for the field filterExpression.

* * @param filterExpression a {@link net.sf.dynamicreports.report.definition.expression.DRIExpression} object. */ public void setFilterExpression(DRIExpression filterExpression) { this.filterExpression = filterExpression; } /** {@inheritDoc} */ @Override public DRBand getTitleBand() { return titleBand; } /** {@inheritDoc} */ @Override public DRBand getPageHeaderBand() { return pageHeaderBand; } /** {@inheritDoc} */ @Override public DRBand getPageFooterBand() { return pageFooterBand; } /** {@inheritDoc} */ @Override public DRBand getColumnHeaderBand() { return columnHeaderBand; } /** {@inheritDoc} */ @Override public DRBand getColumnFooterBand() { return columnFooterBand; } /** {@inheritDoc} */ @Override public DRBand getDetailBand() { return detailBand; } /** {@inheritDoc} */ @Override public DRBand getDetailHeaderBand() { return detailHeaderBand; } /** {@inheritDoc} */ @Override public DRBand getDetailFooterBand() { return detailFooterBand; } /** {@inheritDoc} */ @Override public DRBand getLastPageFooterBand() { return lastPageFooterBand; } /** {@inheritDoc} */ @Override public DRBand getSummaryBand() { return summaryBand; } /** {@inheritDoc} */ @Override public DRBand getNoDataBand() { return noDataBand; } /** {@inheritDoc} */ @Override public DRBand getBackgroundBand() { return backgroundBand; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy