Class GroupHeader

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

    public class GroupHeader
    extends AbstractRootLevelBand
    A report band that appears at the beginning of each instance of a group. A group-header can be marked as repeating header causing the header to be printed at the top of each page as long as the group is active. If the header is marked sticky, the header will even be printed for all sub-report pages.

    Subreports defined for a repeating group header will be ignored for all repeating instances.

    Author:
    David Gilbert
    See Also:
    Serialized Form
    • Constructor Detail

      • GroupHeader

        public GroupHeader()
        Constructs a group header band, containing no elements.
    • Method Detail

      • 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.