|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.fill.JRBaseFiller
public abstract class JRBaseFiller
Nested Class Summary | |
---|---|
protected static interface |
JRBaseFiller.DefaultStyleListener
|
Field Summary | |
---|---|
protected JRFillBand |
background
|
protected java.util.List<JRBand> |
bands
List of JRFillBand objects containing all bands of the
report. |
protected int |
bottomMargin
|
protected java.util.HashMap<JREvaluationTime,java.util.LinkedHashMap<net.sf.jasperreports.engine.fill.PageKey,LinkedMap<java.lang.Object,net.sf.jasperreports.engine.fill.EvaluationBoundAction>>> |
boundElements
Bound element maps indexed by JREvaluationTime objects. |
protected JRCalculator |
calculator
|
protected int |
columnCount
|
protected RunDirectionEnum |
columnDirection
|
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<java.lang.String,JRFillDataset> |
datasetMap
Map of datasets ( JRFillDataset objects} indexed by name. |
protected java.util.Map<java.lang.String,java.text.Format> |
dateFormatCache
|
protected JRStyle |
defaultStyle
|
protected JRFillSection |
detailSection
|
protected JRFillContext |
fillContext
|
protected java.util.Map<java.lang.Integer,JRFillElement> |
fillElements
|
protected int |
fillerId
|
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 |
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<java.lang.String,java.text.Format> |
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 JRFillReportTemplate[] |
reportTemplates
|
protected int |
rightMargin
|
protected JRAbstractScriptlet |
scriptlet
|
protected JRStyle[] |
styles
|
protected java.util.Map<java.lang.Integer,JRBaseFiller> |
subfillers
Collection of subfillers |
protected JRFillBand |
summary
|
protected java.util.List<JRTemplate> |
templates
|
protected JRFillBand |
title
|
protected int |
topMargin
|
protected JRVirtualizationContext |
virtualizationContext
|
protected net.sf.jasperreports.engine.fill.ElementEvaluationVirtualizationListener |
virtualizationListener
|
protected WhenNoDataTypeEnum |
whenNoDataType
|
protected WhenResourceMissingTypeEnum |
whenResourceMissingType
the resource missing handling type |
Constructor Summary | |
---|---|
protected |
JRBaseFiller(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
DatasetExpressionEvaluator initEvaluator,
JRFillSubreport parentElement)
|
protected |
JRBaseFiller(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
JREvaluator initEvaluator,
JRFillSubreport parentElement)
|
Method Summary | |
---|---|
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)
|
void |
addFillListener(FillListener fillListener)
Adds a fill lister to be notified by events that occur during the fill. |
protected void |
addPage(JRPrintPage page)
|
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)
|
int |
assignElementId(JRFillElement fillElement)
|
void |
cancelFill()
Cancells the fill process. |
protected void |
collectIncludedTemplates(JRTemplate template,
java.util.List<JRStyle> externalStyles,
java.util.Set<java.lang.String> loadedLocations,
java.util.Set<java.lang.String> templateParentLocations)
|
protected java.util.List<JRStyle> |
collectStyles()
|
protected void |
collectStyles(JRTemplate template,
java.util.List<JRStyle> externalStyles,
java.util.Set<java.lang.String> loadedLocations)
|
protected void |
collectStyles(JRTemplate template,
java.util.List<JRStyle> externalStyles,
java.util.Set<java.lang.String> loadedLocations,
java.util.Set<java.lang.String> templateParentLocations)
|
protected void |
collectTemplates()
|
protected java.util.List<JRStyle> |
collectTemplateStyles()
|
protected void |
createReportTemplates(JRFillObjectFactory factory)
|
protected java.lang.Object |
evaluateExpression(JRExpression expression,
byte evaluation)
Evaluates an expression |
JasperPrint |
fill(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
|
JasperPrint |
fill(java.util.Map<java.lang.String,java.lang.Object> parameterValues,
java.sql.Connection conn)
|
JasperPrint |
fill(java.util.Map<java.lang.String,java.lang.Object> 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)
|
JRStyle |
getDefaultStyle()
Returns a default style. |
protected JRFillExpressionEvaluator |
getExpressionEvaluator()
|
protected JRFillField |
getField(java.lang.String fieldName)
Returns a report field. |
protected java.util.Map<java.lang.String,JRFillField> |
getFieldsMap()
Returns the report fields indexed by name. |
JRFillContext |
getFillContext()
|
protected int |
getFillerId()
|
protected FormatFactory |
getFormatFactory()
Returns the report format factory. |
protected JRFillGroup |
getGroup(java.lang.String groupName)
|
JasperPrint |
getJasperPrint()
|
JasperReport |
getJasperReport()
Returns the report. |
JasperReportsContext |
getJasperReportsContext()
|
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<java.lang.String,JRFillParameter> |
getParametersMap()
Returns the report parameters indexed by name. |
java.lang.Object |
getParameterValue(java.lang.String parameterName)
Returns the value of a parameter. |
java.util.Map<java.lang.String,java.lang.Object> |
getParameterValuesMap()
Returns the map of parameter values. |
JRPropertiesUtil |
getPropertiesUtil()
|
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<java.lang.String,JRFillVariable> |
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 |
hasBoundActions(JRPrintPage page)
|
protected boolean |
hasMasterFormatFactory()
|
protected boolean |
hasMasterLocale()
|
protected boolean |
hasMasterTimeZone()
|
protected void |
initVirtualizationContext(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
|
protected boolean |
isBandOverFlowAllowed()
|
protected boolean |
isInterrupted()
|
protected boolean |
isPageFinal(int pageIdx)
|
protected boolean |
isSubreport()
|
protected boolean |
isSubreportRunToBottom()
|
protected void |
loadStyles()
|
protected void |
lockVirtualizationContext()
|
protected void |
lookupExternalDefaultStyle(java.util.Collection<JRStyle> styleList)
|
protected void |
moveBoundActions(net.sf.jasperreports.engine.fill.PageKey subreportKey,
net.sf.jasperreports.engine.fill.PageKey parentKey)
|
protected boolean |
moveKeepTogetherSavePointContent()
|
protected JRPrintPage |
newPage()
|
protected boolean |
next()
|
protected void |
registerSubfiller(JRBaseFiller subfiller)
|
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<java.lang.String,java.lang.Object> parameterValues,
java.sql.Connection conn)
|
protected void |
setDatasourceParameterValue(java.util.Map<java.lang.String,java.lang.Object> parameterValues,
JRDataSource ds)
|
protected void |
setDefaultStyle(JRStyle style)
|
protected void |
setInterrupted(boolean isInterrupted)
|
protected void |
setJasperReportsContext(JasperReportsContext jasperReportsContext)
|
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<java.lang.String,java.lang.Object> parameterValues)
|
protected void |
setSubreportRunner(JRSubreportRunner runner)
|
protected void |
setVirtualPageSize(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
|
protected void |
subreportPageFilled(JRPrintPage subreportPage)
|
protected void |
suspendSubreportRunner()
|
protected void |
unlockVirtualizationContext()
|
protected void |
unregisterSubfiller(JRBaseFiller subfiller)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map<java.lang.Integer,JRFillElement> fillElements
protected final int fillerId
protected JRBaseFiller parentFiller
protected JRFillSubreport parentElement
protected java.lang.String name
protected int columnCount
protected PrintOrderEnum printOrder
protected RunDirectionEnum columnDirection
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 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 JRVirtualizationContext virtualizationContext
protected net.sf.jasperreports.engine.fill.ElementEvaluationVirtualizationListener virtualizationListener
protected FormatFactory formatFactory
protected JRFillContext fillContext
protected java.util.HashMap<JREvaluationTime,java.util.LinkedHashMap<net.sf.jasperreports.engine.fill.PageKey,LinkedMap<java.lang.Object,net.sf.jasperreports.engine.fill.EvaluationBoundAction>>> boundElements
JREvaluationTime
objects.
protected JasperPrint jasperPrint
protected JRPrintPage printPage
protected int printPageStretchHeight
protected java.util.List<JRBand> bands
JRFillBand
objects containing all bands of the
report.
protected java.util.Map<java.lang.Integer,JRBaseFiller> subfillers
protected JRCalculator calculator
protected JRAbstractScriptlet scriptlet
protected java.util.Map<java.lang.String,JRFillDataset> datasetMap
JRFillDataset
objects} indexed by name.
protected JasperReport jasperReport
protected java.util.Map<java.lang.String,java.text.Format> dateFormatCache
protected java.util.Map<java.lang.String,java.text.Format> 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
Constructor Detail |
---|
protected JRBaseFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport, JREvaluator initEvaluator, JRFillSubreport parentElement) throws JRException
JRException
protected JRBaseFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport, DatasetExpressionEvaluator initEvaluator, JRFillSubreport parentElement) throws JRException
JRException
Method Detail |
---|
protected java.util.Map<java.lang.String,JRFillParameter> getParametersMap()
public java.util.Map<java.lang.String,java.lang.Object> getParameterValuesMap()
protected java.util.Map<java.lang.String,JRFillField> getFieldsMap()
protected java.util.Map<java.lang.String,JRFillVariable> getVariablesMap()
protected JRFillVariable getVariable(java.lang.String variableName)
variableName
- the variable name
protected JRFillField getField(java.lang.String fieldName)
fieldName
- the field name
public JasperReportsContext getJasperReportsContext()
protected void setJasperReportsContext(JasperReportsContext jasperReportsContext)
public JRPropertiesUtil getPropertiesUtil()
public JRStyledTextParser getStyledTextParser()
public JasperPrint getJasperPrint()
public int getCurrentPageCount()
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 int getCurrentPageStretchHeight()
protected abstract void setPageHeight(int pageHeight)
public void addFillListener(FillListener fillListener)
fillListener
- the listener to addpublic JasperPrint fill(java.util.Map<java.lang.String,java.lang.Object> parameterValues, java.sql.Connection conn) throws JRException
JRException
protected void setConnectionParameterValue(java.util.Map<java.lang.String,java.lang.Object> parameterValues, java.sql.Connection conn)
public JasperPrint fill(java.util.Map<java.lang.String,java.lang.Object> parameterValues, JRDataSource ds) throws JRException
JRException
protected void setDatasourceParameterValue(java.util.Map<java.lang.String,java.lang.Object> parameterValues, JRDataSource ds)
public JasperPrint fill(java.util.Map<java.lang.String,java.lang.Object> 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<JRStyle> collectStyles() throws JRException
JRException
protected void collectTemplates() throws JRException
JRException
public java.util.List<JRTemplate> getTemplates()
protected java.util.List<JRStyle> collectTemplateStyles() throws JRException
JRException
protected void collectStyles(JRTemplate template, java.util.List<JRStyle> externalStyles, java.util.Set<java.lang.String> loadedLocations) throws JRException
JRException
protected void collectStyles(JRTemplate template, java.util.List<JRStyle> externalStyles, java.util.Set<java.lang.String> loadedLocations, java.util.Set<java.lang.String> templateParentLocations) throws JRException
JRException
protected void collectIncludedTemplates(JRTemplate template, java.util.List<JRStyle> externalStyles, java.util.Set<java.lang.String> loadedLocations, java.util.Set<java.lang.String> templateParentLocations) throws JRException
JRException
protected void lookupExternalDefaultStyle(java.util.Collection<JRStyle> styleList)
protected abstract void fillReport() throws JRException
JRException
protected void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameterValues) throws JRException
JRException
protected void initVirtualizationContext(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
protected void lockVirtualizationContext()
protected void unlockVirtualizationContext()
protected void setVirtualPageSize(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
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 value
JRException
protected void setParameter(JRFillParameter parameter, java.lang.Object value) throws JRException
parameter
- the parametervalue
- the value
JRException
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 type
JRException
protected void resolveColumnBoundElements(byte evaluation) throws JRException
evaluation
- the evaluation type
JRException
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 name
JRRuntimeException
- when the variable does not existpublic java.lang.Object getParameterValue(java.lang.String parameterName)
parameterName
- the parameter name
protected void resolveBandBoundElements(JRFillBand band, byte evaluation) throws JRException
band
- the bandevaluation
- the evaluation type
JRException
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 java.lang.Object evaluateExpression(JRExpression expression, byte evaluation) throws JRException
expression
- the expressionevaluation
- the evaluation type
JRException
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 void subreportPageFilled(JRPrintPage subreportPage)
protected void moveBoundActions(net.sf.jasperreports.engine.fill.PageKey subreportKey, net.sf.jasperreports.engine.fill.PageKey parentKey)
protected boolean isPageFinal(int pageIdx)
protected boolean hasBoundActions(JRPrintPage page)
protected JRFillGroup getGroup(java.lang.String groupName)
protected 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 boolean moveKeepTogetherSavePointContent()
public JRFillContext getFillContext()
protected int getFillerId()
public int assignElementId(JRFillElement fillElement)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |