net.sf.jasperreports.engine.fill
public abstract class JRBaseFiller extends java.lang.Object implements JRDefaultStyleProvider, JRVirtualPrintPage.IdentityDataProvider
Modifier and Type | Class and Description |
---|---|
class |
JRBaseFiller.BoundElementMap
Map class to be used for bound elements.
|
protected static interface |
JRBaseFiller.DefaultStyleListener |
protected static class |
JRBaseFiller.PageIdentityDataProvider |
Modifier and Type | Field and Description |
---|---|
protected JRFillBand |
background |
protected java.util.List |
bands
List of
JRFillBand objects containing all bands of the
report. |
protected int |
bottomMargin |
protected java.util.Map |
boundElements
Bound element maps indexed by
JREvaluationTime objects. |
protected JRCalculator |
calculator |
protected int |
columnCount |
protected JRFillBand |
columnFooter |
protected int |
columnFooterOffsetY |
protected JRFillBand |
columnHeader |
protected int |
columnHeaderOffsetY |
protected int |
columnIndex |
protected int |
columnSpacing |
protected int |
columnWidth |
protected java.util.Map |
datasetMap
Map of datasets (
JRFillDataset objects} indexed by name. |
protected java.util.Map |
dateFormatCache |
protected JRReportFont |
defaultFont |
protected JRStyle |
defaultStyle |
protected JRFillSection |
detailSection |
protected FileResolver |
fileResolver |
protected JRFillContext |
fillContext |
protected java.lang.String |
fillerId |
protected JRReportFont[] |
fonts |
protected FormatFactory |
formatFactory |
protected JRFillGroup[] |
groups |
protected boolean |
isCreatingNewPage |
protected boolean |
isFirstColumnBand |
protected boolean |
isFirstPageBand |
protected boolean |
isFloatColumnFooter |
protected boolean |
isLastPageFooter |
protected boolean |
isNewColumn |
protected boolean |
isNewGroup |
protected boolean |
isNewPage |
protected boolean |
isPerPageBoundElements |
protected boolean |
isSummaryNewPage |
protected boolean |
isSummaryWithPageHeaderAndFooter |
protected boolean |
isTitleNewPage |
protected JasperPrint |
jasperPrint |
protected JasperReport |
jasperReport
The report.
|
protected net.sf.jasperreports.engine.fill.SavePoint |
keepTogetherSavePoint |
protected int |
lastPageColumnFooterOffsetY |
protected JRFillBand |
lastPageFooter |
protected int |
leftMargin |
protected JRFillDataset |
mainDataset
Main report dataset.
|
protected JRFillBand |
missingFillBand |
protected JRFillSection |
missingFillSection |
protected java.lang.String |
name |
protected JRFillBand |
noData |
protected java.util.Map |
numberFormatCache |
protected int |
offsetX |
protected int |
offsetY |
protected OrientationEnum |
orientation |
protected JRFillBand |
pageFooter |
protected JRFillBand |
pageHeader |
protected int |
pageHeight |
protected int |
pageWidth |
protected JRFillSubreport |
parentElement |
protected JRBaseFiller |
parentFiller |
protected PrintOrderEnum |
printOrder |
protected JRPrintPage |
printPage |
protected int |
printPageStretchHeight |
protected java.lang.ClassLoader |
reportClassLoader |
protected JRFillReportTemplate[] |
reportTemplates |
protected int |
rightMargin |
protected JRAbstractScriptlet |
scriptlet |
protected JRStyle[] |
styles |
protected java.util.Set |
subfillers
Collection of subfillers
|
protected JRFillBand |
summary |
protected java.util.List<JRTemplate> |
templates |
protected JRFillBand |
title |
protected int |
topMargin |
protected java.net.URLStreamHandlerFactory |
urlHandlerFactory |
protected JRVirtualizer |
virtualizer |
protected WhenNoDataTypeEnum |
whenNoDataType |
protected WhenResourceMissingTypeEnum |
whenResourceMissingType
the resource missing handling type
|
Modifier | Constructor and Description |
---|---|
protected |
JRBaseFiller(JasperReport jasperReport,
DatasetExpressionEvaluator initEvaluator,
JRFillSubreport parentElement) |
protected |
JRBaseFiller(JasperReport jasperReport,
JREvaluator initEvaluator,
JRFillSubreport parentElement) |
Modifier and Type | Method and Description |
---|---|
protected void |
addBoundElement(JRFillElement element,
JRPrintElement printElement,
EvaluationTimeEnum evaluationType,
JRGroup group,
JRFillBand band) |
protected void |
addBoundElement(JRFillElement element,
JRPrintElement printElement,
EvaluationTimeEnum evaluationType,
java.lang.String groupName,
JRFillBand band) |
protected void |
addBoundElement(JRFillElement element,
JRPrintElement printElement,
JREvaluationTime evaluationTime) |
protected void |
addDefaultStyleListener(JRBaseFiller.DefaultStyleListener listener) |
protected void |
addPage(JRPrintPage page) |
protected void |
addPageIdentityDataProvider() |
void |
addPrintStyle(JRStyle style) |
protected void |
addVariableCalculationReq(java.lang.String variableName,
CalculationEnum calculation)
Adds a variable calculation request.
|
protected net.sf.jasperreports.engine.fill.SavePoint |
advanceSavePoint(net.sf.jasperreports.engine.fill.SavePoint savePoint,
net.sf.jasperreports.engine.fill.SavePoint newSavePoint) |
void |
cancelFill()
Cancells the fill process.
|
protected void |
collectIncludedTemplates(JRTemplate template,
java.util.List externalStyles,
java.util.Set loadedLocations,
java.util.Set templateParentLocations) |
protected java.util.List |
collectStyles() |
protected void |
collectStyles(JRTemplate template,
java.util.List externalStyles,
java.util.Set loadedLocations) |
protected void |
collectStyles(JRTemplate template,
java.util.List externalStyles,
java.util.Set loadedLocations,
java.util.Set templateParentLocations) |
protected void |
collectTemplates() |
protected java.util.List |
collectTemplateStyles() |
protected void |
createReportTemplates(JRFillObjectFactory factory) |
protected java.lang.Object |
evaluateExpression(JRExpression expression,
byte evaluation)
Evaluates an expression
|
JasperPrint |
fill(java.util.Map parameterValues) |
JasperPrint |
fill(java.util.Map parameterValues,
java.sql.Connection conn) |
JasperPrint |
fill(java.util.Map parameterValues,
JRDataSource ds) |
protected abstract void |
fillReport() |
protected JRPrintPage |
getCurrentPage() |
int |
getCurrentPageCount()
Returns the number of generated master print pages.
|
protected int |
getCurrentPageStretchHeight() |
protected java.text.Format |
getDateFormat(java.lang.String pattern) |
JRReportFont |
getDefaultFont()
Returns a default font.
|
JRStyle |
getDefaultStyle()
Returns a default style.
|
protected JRFillExpressionEvaluator |
getExpressionEvaluator() |
protected JRFillField |
getField(java.lang.String fieldName)
Returns a report field.
|
protected java.util.Map |
getFieldsMap()
Returns the report fields indexed by name.
|
protected JRReportFont[] |
getFonts() |
protected FormatFactory |
getFormatFactory()
Returns the report format factory.
|
protected JRFillGroup |
getGroup(java.lang.String groupName) |
JRVirtualPrintPage.ObjectIDPair[] |
getIdentityData(JRVirtualPrintPage page)
Collect all of the identity data the the JRBaseFiller needs to know.
|
JasperPrint |
getJasperPrint() |
JasperReport |
getJasperReport()
Returns the report.
|
protected java.util.Locale |
getLocale()
Returns the report locale.
|
JRFillDataset |
getMainDataset() |
protected int |
getMasterColumnCount() |
JRBaseFiller |
getMasterFiller()
Returns the top-level (master) filler object.
|
protected java.text.Format |
getNumberFormat(java.lang.String pattern) |
protected java.util.Map |
getParametersMap()
Returns the report parameters indexed by name.
|
java.util.Map |
getParameterValuesMap()
Returns the map of parameter values.
|
protected java.util.ResourceBundle |
getResourceBundle()
Returns the report resource bundle.
|
JRStyledTextParser |
getStyledTextParser() |
java.util.List<JRTemplate> |
getTemplates() |
protected java.util.TimeZone |
getTimeZone()
Returns the report time zone.
|
protected JRFillVariable |
getVariable(java.lang.String variableName)
Returns a report variable.
|
protected java.util.Map |
getVariablesMap()
Returns the report variables indexed by name.
|
java.lang.Object |
getVariableValue(java.lang.String variableName)
Returns the value of a variable.
|
protected WhenResourceMissingTypeEnum |
getWhenResourceMissingType() |
protected boolean |
hasMasterFormatFactory() |
protected boolean |
hasMasterLocale() |
protected boolean |
hasMasterTimeZone() |
protected boolean |
isBandOverFlowAllowed() |
protected boolean |
isInterrupted() |
protected boolean |
isSubreport() |
protected boolean |
isSubreportRunToBottom() |
protected void |
loadStyles() |
protected void |
lookupExternalDefaultStyle(java.util.Collection styleList) |
protected void |
moveKeepTogetherSavePointContent() |
protected JRPrintPage |
newPage() |
protected boolean |
next() |
protected void |
registerSubfiller(JRBaseFiller subfiller) |
protected void |
removePageIdentityDataProvider() |
protected void |
resolveBandBoundElements(JRFillBand band,
byte evaluation)
Resloves elements which are to be evaluated at band level.
|
protected void |
resolveBoundElements(JREvaluationTime evaluationTime,
byte evaluation) |
protected void |
resolveColumnBoundElements(byte evaluation)
Resolves elements which are to be evaluated at column level.
|
protected void |
resolveGroupBoundElements(byte evaluation,
boolean isFinal)
Resolves elements which are to be evaluated at group level.
|
protected void |
resolvePageBoundElements(byte evaluation)
Resolves elements which are to be evaluated at page level.
|
protected void |
resolveReportBoundElements()
Resolves elements which are to be evaluated at report level.
|
protected void |
setBandOverFlowAllowed(boolean splittableBand) |
protected void |
setConnectionParameterValue(java.util.Map parameterValues,
java.sql.Connection conn) |
protected void |
setDatasourceParameterValue(java.util.Map parameterValues,
JRDataSource ds) |
protected void |
setDefaultStyle(JRStyle style) |
void |
setIdentityData(JRVirtualPrintPage page,
JRVirtualPrintPage.ObjectIDPair[] identityData)
Sets the identity date for a virtualized page.
|
protected void |
setInterrupted(boolean isInterrupted) |
protected abstract void |
setPageHeight(int pageHeight) |
protected void |
setParameter(JRFillParameter parameter,
java.lang.Object value)
Sets a parameter's value.
|
protected void |
setParameter(java.lang.String parameterName,
java.lang.Object value)
Sets a parameter's value.
|
protected void |
setParameters(java.util.Map parameterValues) |
protected void |
setSubreportRunner(JRSubreportRunner runner) |
protected void |
suspendSubreportRunner() |
protected void |
unregisterSubfiller(JRBaseFiller subfiller) |
protected final java.lang.String fillerId
protected JRBaseFiller parentFiller
protected JRFillSubreport parentElement
protected java.lang.String name
protected int columnCount
protected PrintOrderEnum printOrder
protected int pageWidth
protected int pageHeight
protected OrientationEnum orientation
protected WhenNoDataTypeEnum whenNoDataType
protected int columnWidth
protected int columnSpacing
protected int leftMargin
protected int rightMargin
protected int topMargin
protected int bottomMargin
protected boolean isTitleNewPage
protected boolean isSummaryNewPage
protected boolean isSummaryWithPageHeaderAndFooter
protected boolean isFloatColumnFooter
protected WhenResourceMissingTypeEnum whenResourceMissingType
protected JRFillReportTemplate[] reportTemplates
protected java.util.List<JRTemplate> templates
protected JRReportFont defaultFont
protected JRReportFont[] fonts
protected JRStyle defaultStyle
protected JRStyle[] styles
protected JRFillDataset mainDataset
protected JRFillGroup[] groups
protected JRFillSection missingFillSection
protected JRFillBand missingFillBand
protected JRFillBand background
protected JRFillBand title
protected JRFillBand pageHeader
protected JRFillBand columnHeader
protected JRFillSection detailSection
protected JRFillBand columnFooter
protected JRFillBand pageFooter
protected JRFillBand lastPageFooter
protected JRFillBand summary
protected JRFillBand noData
protected JRVirtualizer virtualizer
protected java.lang.ClassLoader reportClassLoader
protected FormatFactory formatFactory
protected java.net.URLStreamHandlerFactory urlHandlerFactory
protected FileResolver fileResolver
protected JRFillContext fillContext
protected java.util.Map boundElements
JREvaluationTime
objects.protected JasperPrint jasperPrint
protected JRPrintPage printPage
protected int printPageStretchHeight
protected java.util.List bands
JRFillBand
objects containing all bands of the
report.protected java.util.Set subfillers
protected JRCalculator calculator
protected JRAbstractScriptlet scriptlet
protected java.util.Map datasetMap
JRFillDataset
objects} indexed by name.protected JasperReport jasperReport
protected boolean isPerPageBoundElements
protected java.util.Map dateFormatCache
protected java.util.Map numberFormatCache
protected net.sf.jasperreports.engine.fill.SavePoint keepTogetherSavePoint
protected boolean isCreatingNewPage
protected boolean isNewPage
protected boolean isNewColumn
protected boolean isNewGroup
protected boolean isFirstPageBand
protected boolean isFirstColumnBand
protected int columnIndex
protected int offsetX
protected int offsetY
protected int columnHeaderOffsetY
protected int columnFooterOffsetY
protected int lastPageColumnFooterOffsetY
protected boolean isLastPageFooter
protected JRBaseFiller(JasperReport jasperReport, JREvaluator initEvaluator, JRFillSubreport parentElement) throws JRException
JRException
protected JRBaseFiller(JasperReport jasperReport, DatasetExpressionEvaluator initEvaluator, JRFillSubreport parentElement) throws JRException
JRException
protected java.util.Map getParametersMap()
public java.util.Map getParameterValuesMap()
protected java.util.Map getFieldsMap()
protected java.util.Map getVariablesMap()
protected JRFillVariable getVariable(java.lang.String variableName)
variableName
- the variable nameprotected JRFillField getField(java.lang.String fieldName)
fieldName
- the field namepublic JRStyledTextParser getStyledTextParser()
public JasperPrint getJasperPrint()
public int getCurrentPageCount()
public JRReportFont getDefaultFont()
JRDefaultFontProvider
getDefaultFont
in interface JRDefaultFontProvider
public JRStyle getDefaultStyle()
JRDefaultStyleProvider
getDefaultStyle
in interface JRDefaultStyleProvider
protected boolean isSubreport()
protected boolean isSubreportRunToBottom()
protected boolean isInterrupted()
protected void setInterrupted(boolean isInterrupted)
protected JRPrintPage getCurrentPage()
protected JRReportFont[] getFonts()
protected int getCurrentPageStretchHeight()
protected abstract void setPageHeight(int pageHeight)
public JasperPrint fill(java.util.Map parameterValues, java.sql.Connection conn) throws JRException
JRException
protected void setConnectionParameterValue(java.util.Map parameterValues, java.sql.Connection conn)
public JasperPrint fill(java.util.Map parameterValues, JRDataSource ds) throws JRException
JRException
protected void setDatasourceParameterValue(java.util.Map parameterValues, JRDataSource ds)
public JasperPrint fill(java.util.Map parameterValues) throws JRException
JRException
public void addPrintStyle(JRStyle style) throws JRException
JRException
protected void addDefaultStyleListener(JRBaseFiller.DefaultStyleListener listener)
protected void setDefaultStyle(JRStyle style)
protected void loadStyles() throws JRException
JRException
protected java.util.List collectStyles() throws JRException
JRException
protected void collectTemplates() throws JRException
JRException
public java.util.List<JRTemplate> getTemplates()
protected java.util.List collectTemplateStyles() throws JRException
JRException
protected void collectStyles(JRTemplate template, java.util.List externalStyles, java.util.Set loadedLocations) throws JRException
JRException
protected void collectStyles(JRTemplate template, java.util.List externalStyles, java.util.Set loadedLocations, java.util.Set templateParentLocations) throws JRException
JRException
protected void collectIncludedTemplates(JRTemplate template, java.util.List externalStyles, java.util.Set loadedLocations, java.util.Set templateParentLocations) throws JRException
JRException
protected void lookupExternalDefaultStyle(java.util.Collection styleList)
protected abstract void fillReport() throws JRException
JRException
protected void setParameters(java.util.Map parameterValues) throws JRException
JRException
protected java.util.Locale getLocale()
protected java.util.TimeZone getTimeZone()
protected java.util.ResourceBundle getResourceBundle()
protected FormatFactory getFormatFactory()
protected java.text.Format getDateFormat(java.lang.String pattern)
protected java.text.Format getNumberFormat(java.lang.String pattern)
protected boolean hasMasterFormatFactory()
protected boolean hasMasterLocale()
protected boolean hasMasterTimeZone()
protected void setParameter(java.lang.String parameterName, java.lang.Object value) throws JRException
parameterName
- the parameter namevalue
- the valueJRException
protected void setParameter(JRFillParameter parameter, java.lang.Object value) throws JRException
parameter
- the parametervalue
- the valueJRException
protected boolean next() throws JRException
JRException
protected void resolveBoundElements(JREvaluationTime evaluationTime, byte evaluation) throws JRException
JRException
protected void resolveReportBoundElements() throws JRException
JRException
protected void resolvePageBoundElements(byte evaluation) throws JRException
evaluation
- the evaluation typeJRException
protected void resolveColumnBoundElements(byte evaluation) throws JRException
evaluation
- the evaluation typeJRException
protected void resolveGroupBoundElements(byte evaluation, boolean isFinal) throws JRException
evaluation
- the evaluation typeisFinal
- JRException
protected JRPrintPage newPage()
public java.lang.Object getVariableValue(java.lang.String variableName)
variableName
- the variable nameJRRuntimeException
- when the variable does not existprotected void resolveBandBoundElements(JRFillBand band, byte evaluation) throws JRException
band
- the bandevaluation
- the evaluation typeJRException
protected void addVariableCalculationReq(java.lang.String variableName, CalculationEnum calculation)
variableName
- the variable namecalculation
- the calculation typepublic void cancelFill() throws JRException
JRException
protected void registerSubfiller(JRBaseFiller subfiller)
protected void unregisterSubfiller(JRBaseFiller subfiller)
protected void addPage(JRPrintPage page)
protected void addPageIdentityDataProvider()
protected void removePageIdentityDataProvider()
protected java.lang.Object evaluateExpression(JRExpression expression, byte evaluation) throws JRException
expression
- the expressionevaluation
- the evaluation typeJRException
protected JRFillExpressionEvaluator getExpressionEvaluator()
protected WhenResourceMissingTypeEnum getWhenResourceMissingType()
public JasperReport getJasperReport()
protected boolean isBandOverFlowAllowed()
protected void setBandOverFlowAllowed(boolean splittableBand)
protected int getMasterColumnCount()
public JRBaseFiller getMasterFiller()
public JRFillDataset getMainDataset()
protected void addBoundElement(JRFillElement element, JRPrintElement printElement, EvaluationTimeEnum evaluationType, java.lang.String groupName, JRFillBand band)
protected void addBoundElement(JRFillElement element, JRPrintElement printElement, EvaluationTimeEnum evaluationType, JRGroup group, JRFillBand band)
protected void addBoundElement(JRFillElement element, JRPrintElement printElement, JREvaluationTime evaluationTime)
protected JRFillGroup getGroup(java.lang.String groupName)
public JRVirtualPrintPage.ObjectIDPair[] getIdentityData(JRVirtualPrintPage page)
All the bound elements on the page are collected and transformed into identity objects.
getIdentityData
in interface JRVirtualPrintPage.IdentityDataProvider
page
- the page to get the identity data forpublic void setIdentityData(JRVirtualPrintPage page, JRVirtualPrintPage.ObjectIDPair[] identityData)
The identity data consists of bound elements located on the page. Pairs of identity hash code and objects are stored when the page is virtualized. When the page gets devirtualized, the original objects are substituted in the bound maps based on their identity hash code.
setIdentityData
in interface JRVirtualPrintPage.IdentityDataProvider
page
- the virtualized pageidentityData
- the identity dataprotected void setSubreportRunner(JRSubreportRunner runner)
protected void suspendSubreportRunner() throws JRException
JRException
protected void createReportTemplates(JRFillObjectFactory factory)
protected net.sf.jasperreports.engine.fill.SavePoint advanceSavePoint(net.sf.jasperreports.engine.fill.SavePoint savePoint, net.sf.jasperreports.engine.fill.SavePoint newSavePoint)
protected void moveKeepTogetherSavePointContent()
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com