Class CrosstabHeader

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

    public class CrosstabHeader
    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

      • CrosstabHeader

        public CrosstabHeader()
        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.