public abstract class AbstractRelatorioBaseBuilder
extends ar.com.fdvs.dj.domain.builders.DynamicReportBuilder
| Modifier and Type | Field and Description |
|---|---|
protected ar.com.fdvs.dj.domain.DynamicReport |
dr |
protected net.sf.jasperreports.engine.JRDataSource |
ds |
protected ar.com.fdvs.dj.domain.Style |
estiloColuna |
protected ar.com.fdvs.dj.domain.Style |
estiloSubtitulo |
protected ar.com.fdvs.dj.domain.Style |
estiloTitulo |
protected ar.com.fdvs.dj.domain.Style |
estiloTituloColuna |
protected ar.com.fdvs.dj.domain.Style |
estiloTituloGrupo |
protected Map |
parametros |
| Constructor and Description |
|---|
AbstractRelatorioBaseBuilder(Map parametros) |
| Modifier and Type | Method and Description |
|---|---|
protected ar.com.fdvs.dj.domain.Style |
copiarEstilo(ar.com.fdvs.dj.domain.Style estilo) |
net.sf.jasperreports.engine.JasperPrint |
getRelatorioJasperPrint()
Método que retorna o relatório no formato JasperPrint.
Pode ser usado para visualizar no JasperViewer (sem precisar tratar o PDF) durante a fase de contrução do relatório. |
abstract void |
setDados(Collection dados)
Configura os dados que serão exibidos no relatório com Query.
|
void |
setDadosColecaoMap(Collection<Map<String,?>> dados)
Configura os dados que serão exibidos no relatório com Collections
de Maps.
|
addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addChart, addChart, addColumn, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addField, addField, addField, addFirstPageImageBanner, addFirstPageImageBanner, addFont, addFooterCrosstab, 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, build, 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, setWhenResourceMissingThrowExceptionprotected net.sf.jasperreports.engine.JRDataSource ds
protected ar.com.fdvs.dj.domain.DynamicReport dr
protected ar.com.fdvs.dj.domain.Style estiloTitulo
protected ar.com.fdvs.dj.domain.Style estiloSubtitulo
protected ar.com.fdvs.dj.domain.Style estiloTituloColuna
protected ar.com.fdvs.dj.domain.Style estiloColuna
protected ar.com.fdvs.dj.domain.Style estiloTituloGrupo
protected Map parametros
public AbstractRelatorioBaseBuilder(Map parametros) throws ar.com.fdvs.dj.domain.builders.DJBuilderException
ar.com.fdvs.dj.domain.builders.DJBuilderExceptionpublic abstract void setDados(Collection dados) throws Exception
dados - Os beans da consulta são usados para preencher o relatório.
Para essa modalidade funcionar corretamente, é necessário que o
relatório tenha seus campos com nomes idênticos aos métodos de acesso do bean.
Exemplo: Use setColumnProperty(nome,...) para um bean.getNome()Exceptionpublic void setDadosColecaoMap(Collection<Map<String,?>> dados) throws Exception
dados - Cada item da collection deve ser um MapExceptionpublic net.sf.jasperreports.engine.JasperPrint getRelatorioJasperPrint()
throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRExceptionprotected ar.com.fdvs.dj.domain.Style copiarEstilo(ar.com.fdvs.dj.domain.Style estilo)
Copyright © 2015. All rights reserved.