public abstract class JRBaseFiller extends BaseReportFiller implements JRDefaultStyleProvider
Modifier and Type | Class and Description |
---|---|
protected static interface |
JRBaseFiller.DefaultStyleListener |
bookmarkHelper, calculator, datasetMap, delayedActions, factory, fillContext, fillerId, fillingThread, fillListener, formatFactory, ignorePagination, jasperPrint, jasperReport, jasperReportsContext, mainDataset, parent, printTransferPropertyPrefixes, propertiesUtil, reportSource, repositoryContext, scriptlet, usedPageWidth, virtualizationContext
Modifier | Constructor and Description |
---|---|
protected |
JRBaseFiller(JasperReportsContext jasperReportsContext,
JasperReportSource reportSource,
BandReportFillerParent parent) |
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) |
protected void |
addPage(JRPrintPage page) |
protected void |
addPageToParent(boolean ended) |
void |
addPrintStyle(JRStyle style) |
protected PrintElementOriginator |
assignElementId(JRFillElement fillElement) |
protected void |
collectIncludedTemplates(ReportTemplateSource templateSource,
List<JRStyle> externalStyles,
Set<String> loadedLocations,
Set<String> templateParentLocations) |
protected List<JRStyle> |
collectStyles() |
protected void |
collectStyles(ReportTemplateSource template,
List<JRStyle> externalStyles,
Set<String> loadedLocations) |
protected void |
collectStyles(ReportTemplateSource templateSource,
List<JRStyle> externalStyles,
Set<String> loadedLocations,
Set<String> templateParentLocations) |
protected void |
collectTemplates() |
protected List<JRStyle> |
collectTemplateStyles() |
protected void |
createReportTemplates(JRFillObjectFactory factory) |
protected int |
currentPageIndex() |
JasperPrint |
fill(Map<String,Object> parameterValues) |
protected void |
fillBand(JRPrintBand band) |
protected abstract void |
fillReport() |
protected JRPrintPage |
getCurrentPage() |
int |
getCurrentPageCount()
Returns the number of generated master print pages.
|
Format |
getDateFormat(String pattern) |
protected Format |
getDateFormat(String pattern,
TimeZone timeZone) |
JRStyle |
getDefaultStyle()
Returns a default style.
|
protected JRFillField |
getField(String fieldName)
Returns a report field.
|
protected Map<String,JRFillField> |
getFieldsMap()
Returns the report fields indexed by name.
|
protected int |
getFillerId() |
protected JRFillGroup |
getGroup(String groupName) |
protected JRFillGroup |
getKeepTogetherGroup() |
protected int |
getMasterColumnCount() |
BaseReportFiller |
getMasterFiller()
Returns the top-level (master) filler object.
|
protected int |
getMaxPageHeight(Map<String,Object> parameterValues) |
protected int |
getMaxPageWidth(Map<String,Object> parameterValues) |
Format |
getNumberFormat(String pattern) |
protected List<String> |
getPrintTransferPropertyPrefixes() |
protected ResourceBundle |
getResourceBundle()
Returns the report resource bundle.
|
JRStyledTextParser |
getStyledTextParser() |
protected JRStyledTextUtil |
getStyledTextUtil() |
StyleResolver |
getStyleResolver()
Returns a style resolver.
|
List<JRTemplate> |
getTemplates() |
protected Map<String,JRFillVariable> |
getVariablesMap()
Returns the report variables indexed by name.
|
protected WhenNoDataTypeEnum |
getWhenNoDataType() |
protected WhenResourceMissingTypeEnum |
getWhenResourceMissingType() |
protected boolean |
hasBoundActions(JRPrintPage page) |
protected boolean |
hasMasterFormatFactory() |
protected boolean |
hasMasterLocale() |
protected boolean |
hasMasterTimeZone() |
protected void |
ignorePaginationSet(Map<String,Object> parameterValues) |
protected JRFillObjectFactory |
initFillFactory() |
protected boolean |
isBandOverFlowAllowed() |
boolean |
isPageFinal(int pageIdx) |
boolean |
isPageFinal(JRPrintPage page) |
protected boolean |
isReorderBandElements() |
protected boolean |
isSubreportRunToBottom() |
protected void |
jasperReportSet() |
protected void |
loadStyles() |
protected void |
lookupExternalDefaultStyle(Collection<JRStyle> styleList) |
protected void |
moveBoundActions(FillPageKey subreportKey,
FillPageKey parentKey) |
protected JRPrintPage |
newPage() |
protected boolean |
next() |
protected void |
recordUsedPageHeight(int pageHeight) |
protected void |
recordUsedWidth(JRPrintElement element) |
void |
registerReportStyles(UUID id,
List<JRStyle> styles) |
protected void |
registerSubfiller(JRBaseFiller subfiller) |
protected void |
resolveBandBoundElements(JRFillBand band,
byte evaluation)
Resloves elements which are to be evaluated at band level.
|
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 |
setDefaultStyle(JRStyle style) |
protected void |
setJasperReportsContext(JasperReportsContext jasperReportsContext) |
protected void |
setMasterPageVariables(int currentPageIndex,
int totalPages) |
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 |
setReorderBandElements(boolean isReorderBandElements) |
protected void |
subreportPageFilled(JRPrintPage subreportPage) |
protected void |
unregisterSubfiller(JRBaseFiller subfiller) |
addBoundElement, addFillListener, addLastPageBookmarks, addVariableCalculationReq, cancelFill, checkInterrupted, createBoundElementMaps, evaluateExpression, fill, fill, getExpressionEvaluator, getFillContext, getFormatFactory, getJasperPrint, getJasperReport, getJasperReportsContext, getLocale, getMainDataset, getOwnIgnorePagination, getParametersMap, getParameterValue, getParameterValuesMap, getPropertiesUtil, getReportSource, getRepositoryContext, getTimeZone, getUsedPageWidth, getVariable, getVariableValue, initDatasets, initVirtualizationContext, isDeliberatelyInterrupted, isIgnorePagination, isInterrupted, isMasterReport, isSubreport, recordUsedPageWidth, resolveBoundElements, resolveMasterBoundElements, setBookmarkHelper, setConnectionParameterValue, setDatasourceParameterValue, setFormatFactory, setIgnorePagination, setInterrupted, setParameters, setParametersToContext, setVirtualPageSize, updateBookmark
public static final String EXCEPTION_MESSAGE_KEY_INFINITE_LOOP_CREATING_NEW_PAGE
public static final String EXCEPTION_MESSAGE_KEY_COLUMN_HEADER_OVERFLOW_INFINITE_LOOP
public static final String EXCEPTION_MESSAGE_KEY_CIRCULAR_DEPENDENCY_FOUND
public static final String EXCEPTION_MESSAGE_KEY_EXTERNAL_STYLE_NAME_NOT_SET
public static final String EXCEPTION_MESSAGE_KEY_NO_SUCH_GROUP
public static final String EXCEPTION_MESSAGE_KEY_PAGE_HEADER_OVERFLOW_INFINITE_LOOP
public static final String EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_SECTION_TYPE
public static final String EXCEPTION_MESSAGE_KEY_KEEP_TOGETHER_CONTENT_DOES_NOT_FIT
protected BandReportFillerParent bandReportParent
protected String name
protected int columnCount
protected PrintOrderEnum printOrder
protected RunDirectionEnum columnDirection
protected int pageWidth
protected int maxPageWidth
protected int pageHeight
protected OrientationEnum orientation
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<ReportTemplateSource> templates
protected JRStyle defaultStyle
protected StyleResolver styleResolver
protected JRStyle[] styles
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 JRPrintPage printPage
protected List<JRBand> bands
JRFillBand
objects containing all bands of the
report.protected Map<Integer,JRBaseFiller> subfillers
protected GroupFooterElementRange groupFooterPositionElementRange
protected ElementRange detailElementRange
protected ElementRange orphanGroupFooterDetailElementRange
protected ElementRange orphanGroupFooterElementRange
protected ElementRange floatColumnFooterElementRange
protected boolean isCreatingNewPage
protected boolean isNewPage
protected boolean isNewColumn
protected boolean isFirstPageBand
protected boolean isFirstColumnBand
protected boolean isCrtRecordOnPage
protected boolean isCrtRecordOnColumn
protected Integer preventOrphanFootersMinLevel
protected int crtGroupFootersLevel
protected int columnIndex
protected int offsetX
protected int offsetY
protected int columnHeaderOffsetY
protected int columnFooterOffsetY
protected int lastPageColumnFooterOffsetY
protected boolean isLastPageFooter
protected boolean isReorderBandElements
protected int usedPageHeight
protected JRBaseFiller(JasperReportsContext jasperReportsContext, JasperReportSource reportSource, BandReportFillerParent parent) throws JRException
JRException
protected void jasperReportSet()
jasperReportSet
in class BaseReportFiller
protected JRFillObjectFactory initFillFactory()
initFillFactory
in class BaseReportFiller
protected void setJasperReportsContext(JasperReportsContext jasperReportsContext)
setJasperReportsContext
in class BaseReportFiller
protected Map<String,JRFillField> getFieldsMap()
protected Map<String,JRFillVariable> getVariablesMap()
protected JRFillField getField(String fieldName)
fieldName
- the field namepublic JRStyledTextParser getStyledTextParser()
protected JRStyledTextUtil getStyledTextUtil()
public int getCurrentPageCount()
public JRStyle getDefaultStyle()
JRDefaultStyleProvider
getDefaultStyle
in interface JRDefaultStyleProvider
public StyleResolver getStyleResolver()
JRDefaultStyleProvider
getStyleResolver
in interface JRDefaultStyleProvider
protected boolean isSubreportRunToBottom()
protected JRPrintPage getCurrentPage()
protected abstract void setPageHeight(int pageHeight)
@continuable public JasperPrint fill(Map<String,Object> parameterValues) throws JRException
fill
in interface ReportFiller
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 List<JRStyle> collectStyles() throws JRException
JRException
protected void collectTemplates() throws JRException
JRException
public List<JRTemplate> getTemplates()
protected List<JRStyle> collectTemplateStyles() throws JRException
JRException
protected void collectStyles(ReportTemplateSource template, List<JRStyle> externalStyles, Set<String> loadedLocations) throws JRException
JRException
protected void collectStyles(ReportTemplateSource templateSource, List<JRStyle> externalStyles, Set<String> loadedLocations, Set<String> templateParentLocations) throws JRException
JRException
protected void collectIncludedTemplates(ReportTemplateSource templateSource, List<JRStyle> externalStyles, Set<String> loadedLocations, Set<String> templateParentLocations) throws JRException
JRException
protected void lookupExternalDefaultStyle(Collection<JRStyle> styleList)
@continuable protected abstract void fillReport() throws JRException
JRException
protected void ignorePaginationSet(Map<String,Object> parameterValues)
ignorePaginationSet
in class BaseReportFiller
protected void recordUsedPageHeight(int pageHeight)
protected ResourceBundle getResourceBundle()
protected WhenNoDataTypeEnum getWhenNoDataType()
protected boolean hasMasterFormatFactory()
protected boolean hasMasterLocale()
protected boolean hasMasterTimeZone()
protected void setParameter(String parameterName, Object value) throws JRException
parameterName
- the parameter namevalue
- the valueJRException
protected void setParameter(JRFillParameter parameter, Object value) throws JRException
parameter
- the parametervalue
- the valueJRException
protected boolean next() 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()
protected void resolveBandBoundElements(JRFillBand band, byte evaluation) throws JRException
band
- the bandevaluation
- the evaluation typeJRException
protected void registerSubfiller(JRBaseFiller subfiller)
protected void unregisterSubfiller(JRBaseFiller subfiller)
protected void fillBand(JRPrintBand band)
protected void recordUsedWidth(JRPrintElement element)
protected void addPage(JRPrintPage page)
@continuable protected void addPageToParent(boolean ended) throws JRException
JRException
protected void setMasterPageVariables(int currentPageIndex, int totalPages)
protected WhenResourceMissingTypeEnum getWhenResourceMissingType()
protected boolean isBandOverFlowAllowed()
protected void setBandOverFlowAllowed(boolean splittableBand)
protected boolean isReorderBandElements()
protected void setReorderBandElements(boolean isReorderBandElements)
protected int getMasterColumnCount()
public BaseReportFiller getMasterFiller()
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 int currentPageIndex()
protected void subreportPageFilled(JRPrintPage subreportPage)
protected void moveBoundActions(FillPageKey subreportKey, FillPageKey parentKey)
public boolean isPageFinal(int pageIdx)
isPageFinal
in interface ReportFiller
public boolean isPageFinal(JRPrintPage page)
protected boolean hasBoundActions(JRPrintPage page)
protected JRFillGroup getGroup(String groupName)
protected JRFillGroup getKeepTogetherGroup()
protected void createReportTemplates(JRFillObjectFactory factory)
protected int getFillerId()
protected PrintElementOriginator assignElementId(JRFillElement fillElement)
Copyright © 2019 TIBCO Software Inc.. All rights reserved.