Class JRElementsVisitor

  • All Implemented Interfaces:
    ElementsVisitor, JRVisitor

    public class JRElementsVisitor
    extends JRDelegationVisitor
    implements ElementsVisitor
    Report elements visitor. This class can be used to recursively visit all the elements of a report.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Detail

      • JRElementsVisitor

        public JRElementsVisitor​(JRVisitor visitor)
        Creates a report visitor.
        Parameters:
        visitor - the elements visitor
    • Method Detail

      • visitReport

        public static void visitReport​(JRReport report,
                                       JRVisitor visitor)
        Visits all the elements of a report.
        Parameters:
        report - the report
        visitor - the element visitor
      • visitDeepElements

        public boolean visitDeepElements()
        Description copied from interface: ElementsVisitor
        Decides whether this visitor is to visit deep/nested elements.
        Specified by:
        visitDeepElements in interface ElementsVisitor
        Returns:
        whether this visitor is to visit deep/nested elements
      • visitReport

        public void visitReport​(JRReport report)
        Visits all the elements of a report.
        Parameters:
        report - the report
      • visitSection

        protected void visitSection​(JRSection section)
      • visitBand

        protected void visitBand​(JRBand band)
      • visitElements

        protected void visitElements​(java.util.List<JRChild> elements)