Class JRBaseFiller

    • Field Detail

      • EXCEPTION_MESSAGE_KEY_INFINITE_LOOP_CREATING_NEW_PAGE

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_INFINITE_LOOP_CREATING_NEW_PAGE
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_COLUMN_HEADER_OVERFLOW_INFINITE_LOOP

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_COLUMN_HEADER_OVERFLOW_INFINITE_LOOP
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_CIRCULAR_DEPENDENCY_FOUND

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_CIRCULAR_DEPENDENCY_FOUND
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_EXTERNAL_STYLE_NAME_NOT_SET

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_EXTERNAL_STYLE_NAME_NOT_SET
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_NO_SUCH_GROUP

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_NO_SUCH_GROUP
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_PAGE_HEADER_OVERFLOW_INFINITE_LOOP

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_PAGE_HEADER_OVERFLOW_INFINITE_LOOP
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_SECTION_TYPE

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_SECTION_TYPE
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_KEEP_TOGETHER_CONTENT_DOES_NOT_FIT

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_KEEP_TOGETHER_CONTENT_DOES_NOT_FIT
        See Also:
        Constant Field Values
      • name

        protected java.lang.String name
      • columnCount

        protected int columnCount
      • pageWidth

        protected int pageWidth
      • maxPageWidth

        protected int maxPageWidth
      • pageHeight

        protected int pageHeight
      • columnWidth

        protected int columnWidth
      • columnSpacing

        protected int columnSpacing
      • leftMargin

        protected int leftMargin
      • rightMargin

        protected int rightMargin
      • topMargin

        protected int topMargin
      • bottomMargin

        protected int bottomMargin
      • isTitleNewPage

        protected boolean isTitleNewPage
      • isSummaryNewPage

        protected boolean isSummaryNewPage
      • isSummaryWithPageHeaderAndFooter

        protected boolean isSummaryWithPageHeaderAndFooter
      • isFloatColumnFooter

        protected boolean isFloatColumnFooter
      • defaultStyle

        protected JRStyle defaultStyle
      • styles

        protected JRStyle[] styles
      • missingFillBand

        protected JRFillBand missingFillBand
      • lastPageFooter

        protected JRFillBand lastPageFooter
      • printPageContentsWidth

        protected int printPageContentsWidth
      • bands

        protected java.util.List<JRBand> bands
        List of JRFillBand objects containing all bands of the report.
      • subfillers

        protected java.util.Map<java.lang.Integer,​JRBaseFiller> subfillers
        Collection of subfillers
      • dateFormatCache

        protected java.util.Map<java.lang.String,​java.text.Format> dateFormatCache
      • numberFormatCache

        protected java.util.Map<java.lang.String,​java.text.Format> numberFormatCache
      • detailElementRange

        protected ElementRange detailElementRange
      • orphanGroupFooterDetailElementRange

        protected ElementRange orphanGroupFooterDetailElementRange
      • orphanGroupFooterElementRange

        protected ElementRange orphanGroupFooterElementRange
      • floatColumnFooterElementRange

        protected ElementRange floatColumnFooterElementRange
      • isCreatingNewPage

        protected boolean isCreatingNewPage
      • isNewPage

        protected boolean isNewPage
      • isNewColumn

        protected boolean isNewColumn
      • isFirstPageBand

        protected boolean isFirstPageBand
      • isFirstColumnBand

        protected boolean isFirstColumnBand
      • isCrtRecordOnPage

        protected boolean isCrtRecordOnPage
      • isCrtRecordOnColumn

        protected boolean isCrtRecordOnColumn
      • preventOrphanFootersMinLevel

        protected java.lang.Integer preventOrphanFootersMinLevel
      • crtGroupFootersLevel

        protected int crtGroupFootersLevel
      • columnIndex

        protected int columnIndex
      • offsetX

        protected int offsetX
      • offsetY

        protected int offsetY
      • columnHeaderOffsetY

        protected int columnHeaderOffsetY
      • columnFooterOffsetY

        protected int columnFooterOffsetY
      • lastPageColumnFooterOffsetY

        protected int lastPageColumnFooterOffsetY
      • isLastPageFooter

        protected boolean isLastPageFooter
      • isReorderBandElements

        protected boolean isReorderBandElements
      • usedPageHeight

        protected int usedPageHeight
    • Method Detail

      • getFieldsMap

        protected java.util.Map<java.lang.String,​JRFillField> getFieldsMap()
        Returns the report fields indexed by name.
        Returns:
        the report fields map
      • getVariablesMap

        protected java.util.Map<java.lang.String,​JRFillVariable> getVariablesMap()
        Returns the report variables indexed by name.
        Returns:
        the report variables map
      • getField

        protected JRFillField getField​(java.lang.String fieldName)
        Returns a report field.
        Parameters:
        fieldName - the field name
        Returns:
        the field
      • getPrintTransferPropertyPrefixes

        protected java.util.List<java.lang.String> getPrintTransferPropertyPrefixes()
      • getCurrentPageCount

        public int getCurrentPageCount()
        Returns the number of generated master print pages.
        Returns:
        the number of generated master print pages
      • isSubreportRunToBottom

        protected boolean isSubreportRunToBottom()
      • getCurrentPageContentsWidth

        protected int getCurrentPageContentsWidth()
      • setPageHeight

        protected abstract void setPageHeight​(int pageHeight)
      • setDefaultStyle

        protected void setDefaultStyle​(JRStyle style)
      • registerReportStyles

        public void registerReportStyles​(java.util.UUID id,
                                         java.util.List<JRStyle> styles)
      • getTemplates

        public java.util.List<JRTemplate> getTemplates()
      • collectStyles

        protected void collectStyles​(ReportTemplateSource templateSource,
                                     java.util.List<JRStyle> externalStyles,
                                     java.util.Set<java.lang.String> loadedLocations,
                                     java.util.Set<java.lang.String> templateParentLocations)
                              throws JRException
        Throws:
        JRException
      • collectIncludedTemplates

        protected void collectIncludedTemplates​(ReportTemplateSource templateSource,
                                                java.util.List<JRStyle> externalStyles,
                                                java.util.Set<java.lang.String> loadedLocations,
                                                java.util.Set<java.lang.String> templateParentLocations)
                                         throws JRException
        Throws:
        JRException
      • lookupExternalDefaultStyle

        protected void lookupExternalDefaultStyle​(java.util.Collection<JRStyle> styleList)
      • ignorePaginationSet

        protected void ignorePaginationSet​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
        Specified by:
        ignorePaginationSet in class BaseReportFiller
      • getMaxPageHeight

        protected int getMaxPageHeight​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
      • getMaxPageWidth

        protected int getMaxPageWidth​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
      • recordUsedPageHeight

        protected void recordUsedPageHeight​(int pageHeight)
      • getResourceBundle

        protected java.util.ResourceBundle getResourceBundle()
        Returns the report resource bundle.
        Returns:
        the report resource bundle
      • getDateFormat

        public java.text.Format getDateFormat​(java.lang.String pattern)
      • getDateFormat

        protected java.text.Format getDateFormat​(java.lang.String pattern,
                                                 java.util.TimeZone timeZone)
      • getNumberFormat

        public java.text.Format getNumberFormat​(java.lang.String pattern)
      • hasMasterFormatFactory

        protected boolean hasMasterFormatFactory()
      • hasMasterLocale

        protected boolean hasMasterLocale()
      • hasMasterTimeZone

        protected boolean hasMasterTimeZone()
      • setParameter

        protected void setParameter​(java.lang.String parameterName,
                                    java.lang.Object value)
                             throws JRException
        Sets a parameter's value.
        Parameters:
        parameterName - the parameter name
        value - the value
        Throws:
        JRException
      • setParameter

        protected void setParameter​(JRFillParameter parameter,
                                    java.lang.Object value)
                             throws JRException
        Sets a parameter's value.
        Parameters:
        parameter - the parameter
        value - the value
        Throws:
        JRException
      • resolveReportBoundElements

        protected void resolveReportBoundElements()
                                           throws JRException
        Resolves elements which are to be evaluated at report level.
        Throws:
        JRException
      • resolvePageBoundElements

        protected void resolvePageBoundElements​(byte evaluation)
                                         throws JRException
        Resolves elements which are to be evaluated at page level.
        Parameters:
        evaluation - the evaluation type
        Throws:
        JRException
      • resolveColumnBoundElements

        protected void resolveColumnBoundElements​(byte evaluation)
                                           throws JRException
        Resolves elements which are to be evaluated at column level.
        Parameters:
        evaluation - the evaluation type
        Throws:
        JRException
      • resolveGroupBoundElements

        protected void resolveGroupBoundElements​(byte evaluation,
                                                 boolean isFinal)
                                          throws JRException
        Resolves elements which are to be evaluated at group level.
        Parameters:
        evaluation - the evaluation type
        isFinal -
        Throws:
        JRException
      • resolveBandBoundElements

        protected void resolveBandBoundElements​(JRFillBand band,
                                                byte evaluation)
                                         throws JRException
        Resloves elements which are to be evaluated at band level.
        Parameters:
        band - the band
        evaluation - the evaluation type
        Throws:
        JRException
      • registerSubfiller

        protected void registerSubfiller​(JRBaseFiller subfiller)
      • unregisterSubfiller

        protected void unregisterSubfiller​(JRBaseFiller subfiller)
      • fillBand

        protected void fillBand​(JRPrintBand band)
      • recordUsedWidth

        protected void recordUsedWidth​(JRPrintElement element)
      • addPage

        protected void addPage​(JRPrintPage page)
      • addPageToParent

        @continuable
        protected void addPageToParent​(boolean ended)
                                throws JRException
        Throws:
        JRException
      • setMasterPageVariables

        protected void setMasterPageVariables​(int currentPageIndex,
                                              int totalPages)
      • isBandOverFlowAllowed

        protected boolean isBandOverFlowAllowed()
      • setBandOverFlowAllowed

        protected void setBandOverFlowAllowed​(boolean splittableBand)
      • isReorderBandElements

        protected boolean isReorderBandElements()
      • setReorderBandElements

        protected void setReorderBandElements​(boolean isReorderBandElements)
      • isLegacyTextMeasuring

        protected boolean isLegacyTextMeasuring()
        Deprecated.
        To be removed.
      • getMasterColumnCount

        protected int getMasterColumnCount()
      • getMasterFiller

        public BaseReportFiller getMasterFiller()
        Returns the top-level (master) filler object.
        Returns:
        the master filler object
      • currentPageIndex

        protected int currentPageIndex()
      • subreportPageFilled

        protected void subreportPageFilled​(JRPrintPage subreportPage)
      • isPageFinal

        public boolean isPageFinal​(JRPrintPage page)
      • hasBoundActions

        protected boolean hasBoundActions​(JRPrintPage page)
      • getGroup

        protected JRFillGroup getGroup​(java.lang.String groupName)
      • getKeepTogetherGroup

        protected JRFillGroup getKeepTogetherGroup()
      • createReportTemplates

        protected void createReportTemplates​(JRFillObjectFactory factory)
      • getFillerId

        protected int getFillerId()