Class CrosstabSummaryHeader

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<Element>, DataTarget, ReportElement, RootLevelBand

    public class CrosstabSummaryHeader
    extends Band
    implements RootLevelBand
    A details header is printed between the last group-header and the first detail band. The header is printed on the itemsStarted(..) event. A details-header cannot carry subreports.

    This behavior can be easily changed with a style-expression on the visible-style-property. ("=NOT(ISEMPTYDATA())"

    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • CrosstabSummaryHeader

        public CrosstabSummaryHeader()
        Constructs a new band (initially empty).
    • Method Detail

      • getSubReportCount

        public final int getSubReportCount()
        Returns the number of subreports on this band. This returns zero, as page-bands cannot have subreports.
        Specified by:
        getSubReportCount in interface RootLevelBand
        Returns:
        the subreport count.
      • getSubReport

        public final SubReport getSubReport​(int index)
        Throws an IndexOutOfBoundsException as page-footer cannot have sub-reports.
        Specified by:
        getSubReport in interface RootLevelBand
        Parameters:
        index - the index.
        Returns:
        nothing, as an exception is thrown instead.
      • getSubReports

        public SubReport[] getSubReports()
        Returns an empty array, as page-footer cannot have subreports.
        Specified by:
        getSubReports in interface RootLevelBand
        Returns:
        the sub-reports as array.
      • isRepeat

        public boolean isRepeat()
        Checks whether this group header should be repeated on new pages.
        Returns:
        true, if the header will be repeated, false otherwise
      • setRepeat

        public void setRepeat​(boolean repeat)
        Defines, whether this group header should be repeated on new pages.
        Parameters:
        repeat - true, if the header will be repeated, false otherwise
      • isSticky

        public boolean isSticky()
        Returns true if the footer should be shown on all subreports.
        Returns:
        true or false.
      • setSticky

        public void setSticky​(boolean b)
        Defines whether the footer should be shown on all subreports.
        Parameters:
        b - a flag indicating whether or not the footer is shown on the first page.