public abstract class RelatorioTemplate extends RelatorioRapido
Modifier and Type | Field and Description |
---|---|
protected AbstractRelatorioBaseBuilder |
relatorio |
CENTRO, DIREITA, ESQUERDA
dr, ds, estiloColuna, estiloSubtitulo, estiloTitulo, estiloTituloColuna, estiloTituloGrupo, parametros
Constructor and Description |
---|
RelatorioTemplate(Map parametros)
Caso o relatório precise receber parâmetros, use o construtor para
obrigar o utilizador do relatório a informá-los.
|
Modifier and Type | Method and Description |
---|---|
abstract AbstractRelatorioBaseBuilder |
configurarRelatorio()
Classe que permite o uso do Design Pattern Template Method.
|
void |
gerar() |
byte[] |
getRelatorioExcel() |
StringBuffer |
getRelatorioHTML() |
byte[] |
getRelatorioPDF()
Método que gera o relatório em PDF.
|
abstract Collection |
processarDados()
Implemente este método para processar os dados que serão exibidos no
relatório.
|
addColuna, addColuna, addColuna, delColuna, getRelatorioJasperPrint, setColunaPercTotal, setColunaTotal, setDados
copiarEstilo, setDadosColecaoMap
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, setWhenResourceMissingThrowException
protected AbstractRelatorioBaseBuilder relatorio
public RelatorioTemplate(Map parametros) throws ar.com.fdvs.dj.domain.builders.DJBuilderException
ar.com.fdvs.dj.domain.builders.DJBuilderException
public abstract AbstractRelatorioBaseBuilder configurarRelatorio() throws ar.com.fdvs.dj.domain.builders.DJBuilderException, net.sf.jasperreports.engine.JRException, ar.com.fdvs.dj.domain.builders.ColumnBuilderException
ar.com.fdvs.dj.domain.builders.DJBuilderException
net.sf.jasperreports.engine.JRException
ar.com.fdvs.dj.domain.builders.ColumnBuilderException
public abstract Collection processarDados() throws Exception
Exception
public byte[] getRelatorioPDF() throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
public StringBuffer getRelatorioHTML() throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
public byte[] getRelatorioExcel() throws net.sf.jasperreports.engine.JRException, IOException
net.sf.jasperreports.engine.JRException
IOException
Copyright © 2015. All rights reserved.