public abstract class JRBaseFiller extends Object implements JRDefaultStyleProvider
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
JRBaseFiller.DefaultStyleListener |
| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseFiller(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
DatasetExpressionEvaluator initEvaluator,
JRFillSubreport parentElement) |
protected |
JRBaseFiller(JasperReportsContext jasperReportsContext,
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,
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(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 |
checkInterrupted() |
protected void |
collectIncludedTemplates(JRTemplate template,
List<JRStyle> externalStyles,
Set<String> loadedLocations,
Set<String> templateParentLocations) |
protected List<JRStyle> |
collectStyles() |
protected void |
collectStyles(JRTemplate template,
List<JRStyle> externalStyles,
Set<String> loadedLocations) |
protected void |
collectStyles(JRTemplate template,
List<JRStyle> externalStyles,
Set<String> loadedLocations,
Set<String> templateParentLocations) |
protected void |
collectTemplates() |
protected List<JRStyle> |
collectTemplateStyles() |
protected void |
createReportTemplates(JRFillObjectFactory factory) |
protected Object |
evaluateExpression(JRExpression expression,
byte evaluation)
Evaluates an expression
|
JasperPrint |
fill(Map<String,Object> parameterValues) |
JasperPrint |
fill(Map<String,Object> parameterValues,
Connection conn) |
JasperPrint |
fill(Map<String,Object> parameterValues,
JRDataSource ds) |
protected abstract void |
fillReport() |
protected JRPrintPage |
getCurrentPage() |
int |
getCurrentPageCount()
Returns the number of generated master print pages.
|
protected int |
getCurrentPageStretchHeight() |
Format |
getDateFormat(String pattern) |
JRStyle |
getDefaultStyle()
Returns a default style.
|
protected JRFillExpressionEvaluator |
getExpressionEvaluator() |
protected JRFillField |
getField(String fieldName)
Returns a report field.
|
protected Map<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(String groupName) |
JasperPrint |
getJasperPrint() |
JasperReport |
getJasperReport()
Returns the report.
|
JasperReportsContext |
getJasperReportsContext() |
protected Locale |
getLocale()
Returns the report locale.
|
JRFillDataset |
getMainDataset() |
protected int |
getMasterColumnCount() |
JRBaseFiller |
getMasterFiller()
Returns the top-level (master) filler object.
|
Format |
getNumberFormat(String pattern) |
protected Map<String,JRFillParameter> |
getParametersMap()
Returns the report parameters indexed by name.
|
Object |
getParameterValue(String parameterName)
Returns the value of a parameter.
|
Map<String,Object> |
getParameterValuesMap()
Returns the map of parameter values.
|
JRPropertiesUtil |
getPropertiesUtil() |
protected ResourceBundle |
getResourceBundle()
Returns the report resource bundle.
|
JRStyledTextParser |
getStyledTextParser() |
List<JRTemplate> |
getTemplates() |
protected TimeZone |
getTimeZone()
Returns the report time zone.
|
protected JRFillVariable |
getVariable(String variableName)
Returns a report variable.
|
protected Map<String,JRFillVariable> |
getVariablesMap()
Returns the report variables indexed by name.
|
Object |
getVariableValue(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(Map<String,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(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(Map<String,Object> parameterValues,
Connection conn) |
protected void |
setDatasourceParameterValue(Map<String,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,
Object value)
Sets a parameter's value.
|
protected void |
setParameter(String parameterName,
Object value)
Sets a parameter's value.
|
protected void |
setParameters(Map<String,Object> parameterValues) |
protected void |
setSubreportRunner(JRSubreportRunner runner) |
protected void |
setVirtualPageSize(Map<String,Object> parameterValues) |
protected void |
subreportPageFilled(JRPrintPage subreportPage) |
protected void |
suspendSubreportRunner() |
protected void |
unlockVirtualizationContext() |
protected void |
unregisterSubfiller(JRBaseFiller subfiller) |
protected final Map<Integer,JRFillElement> fillElements
protected final int fillerId
protected JRBaseFiller parentFiller
protected JRFillSubreport parentElement
protected 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 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 HashMap<JREvaluationTime,LinkedHashMap<net.sf.jasperreports.engine.fill.PageKey,LinkedMap<Object,net.sf.jasperreports.engine.fill.EvaluationBoundAction>>> boundElements
JREvaluationTime objects.protected JasperPrint jasperPrint
protected JRPrintPage printPage
protected int printPageStretchHeight
protected List<JRBand> bands
JRFillBand objects containing all bands of the
report.protected Map<Integer,JRBaseFiller> subfillers
protected JRCalculator calculator
protected JRAbstractScriptlet scriptlet
protected Map<String,JRFillDataset> datasetMap
JRFillDataset objects} indexed by name.protected JasperReport jasperReport
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(JasperReportsContext jasperReportsContext, JasperReport jasperReport, JREvaluator initEvaluator, JRFillSubreport parentElement) throws JRException
JRExceptionprotected JRBaseFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport, DatasetExpressionEvaluator initEvaluator, JRFillSubreport parentElement) throws JRException
JRExceptionprotected Map<String,JRFillParameter> getParametersMap()
public Map<String,Object> getParameterValuesMap()
protected Map<String,JRFillField> getFieldsMap()
protected Map<String,JRFillVariable> getVariablesMap()
protected JRFillVariable getVariable(String variableName)
variableName - the variable nameprotected JRFillField getField(String fieldName)
fieldName - the field namepublic JasperReportsContext getJasperReportsContext()
protected void setJasperReportsContext(JasperReportsContext jasperReportsContext)
public JRPropertiesUtil getPropertiesUtil()
public JRStyledTextParser getStyledTextParser()
public JasperPrint getJasperPrint()
public int getCurrentPageCount()
public JRStyle getDefaultStyle()
JRDefaultStyleProvidergetDefaultStyle in interface JRDefaultStyleProviderprotected boolean isSubreport()
protected boolean isSubreportRunToBottom()
protected boolean isInterrupted()
protected void setInterrupted(boolean isInterrupted)
protected void checkInterrupted()
protected JRPrintPage getCurrentPage()
protected int getCurrentPageStretchHeight()
protected abstract void setPageHeight(int pageHeight)
public void addFillListener(FillListener fillListener)
fillListener - the listener to addpublic JasperPrint fill(Map<String,Object> parameterValues, Connection conn) throws JRException
JRExceptionprotected void setConnectionParameterValue(Map<String,Object> parameterValues, Connection conn)
public JasperPrint fill(Map<String,Object> parameterValues, JRDataSource ds) throws JRException
JRExceptionprotected void setDatasourceParameterValue(Map<String,Object> parameterValues, JRDataSource ds)
public JasperPrint fill(Map<String,Object> parameterValues) throws JRException
JRExceptionpublic void addPrintStyle(JRStyle style) throws JRException
JRExceptionprotected void addDefaultStyleListener(JRBaseFiller.DefaultStyleListener listener)
protected void setDefaultStyle(JRStyle style)
protected void loadStyles()
throws JRException
JRExceptionprotected List<JRStyle> collectStyles() throws JRException
JRExceptionprotected void collectTemplates()
throws JRException
JRExceptionpublic List<JRTemplate> getTemplates()
protected List<JRStyle> collectTemplateStyles() throws JRException
JRExceptionprotected void collectStyles(JRTemplate template, List<JRStyle> externalStyles, Set<String> loadedLocations) throws JRException
JRExceptionprotected void collectStyles(JRTemplate template, List<JRStyle> externalStyles, Set<String> loadedLocations, Set<String> templateParentLocations) throws JRException
JRExceptionprotected void collectIncludedTemplates(JRTemplate template, List<JRStyle> externalStyles, Set<String> loadedLocations, Set<String> templateParentLocations) throws JRException
JRExceptionprotected void lookupExternalDefaultStyle(Collection<JRStyle> styleList)
protected abstract void fillReport()
throws JRException
JRExceptionprotected void setParameters(Map<String,Object> parameterValues) throws JRException
JRExceptionprotected void initVirtualizationContext(Map<String,Object> parameterValues)
protected void lockVirtualizationContext()
protected void unlockVirtualizationContext()
protected Locale getLocale()
protected TimeZone getTimeZone()
protected ResourceBundle getResourceBundle()
protected FormatFactory getFormatFactory()
protected boolean hasMasterFormatFactory()
protected boolean hasMasterLocale()
protected boolean hasMasterTimeZone()
protected void setParameter(String parameterName, Object value) throws JRException
parameterName - the parameter namevalue - the valueJRExceptionprotected void setParameter(JRFillParameter parameter, Object value) throws JRException
parameter - the parametervalue - the valueJRExceptionprotected boolean next()
throws JRException
JRExceptionprotected void resolveBoundElements(JREvaluationTime evaluationTime, byte evaluation) throws JRException
JRExceptionprotected void resolveReportBoundElements()
throws JRException
JRExceptionprotected void resolvePageBoundElements(byte evaluation)
throws JRException
evaluation - the evaluation typeJRExceptionprotected void resolveColumnBoundElements(byte evaluation)
throws JRException
evaluation - the evaluation typeJRExceptionprotected void resolveGroupBoundElements(byte evaluation,
boolean isFinal)
throws JRException
evaluation - the evaluation typeisFinal - JRExceptionprotected JRPrintPage newPage()
public Object getVariableValue(String variableName)
variableName - the variable nameJRRuntimeException - when the variable does not existpublic Object getParameterValue(String parameterName)
parameterName - the parameter nameprotected void resolveBandBoundElements(JRFillBand band, byte evaluation) throws JRException
band - the bandevaluation - the evaluation typeJRExceptionprotected void addVariableCalculationReq(String variableName, CalculationEnum calculation)
variableName - the variable namecalculation - the calculation typepublic void cancelFill()
throws JRException
JRExceptionprotected void registerSubfiller(JRBaseFiller subfiller)
protected void unregisterSubfiller(JRBaseFiller subfiller)
protected void addPage(JRPrintPage page)
protected Object evaluateExpression(JRExpression expression, byte evaluation) throws JRException
expression - the expressionevaluation - the evaluation typeJRExceptionprotected 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, 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(String groupName)
protected void setSubreportRunner(JRSubreportRunner runner)
protected void suspendSubreportRunner()
throws JRException
JRExceptionprotected 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)
Copyright © 2012. All Rights Reserved.