Package net.sf.jasperreports.engine.util
Class JRElementsVisitor
- java.lang.Object
-
- net.sf.jasperreports.engine.util.JRDelegationVisitor
-
- net.sf.jasperreports.engine.util.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 Summary
Constructors Constructor Description JRElementsVisitor(JRVisitor visitor)Creates a report visitor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidvisitBand(JRBand band)booleanvisitDeepElements()Decides whether this visitor is to visit deep/nested elements.protected voidvisitElements(List<JRChild> elements)voidvisitReport(JRReport report)Visits all the elements of a report.static voidvisitReport(JRReport report, JRVisitor visitor)Visits all the elements of a report.protected voidvisitSection(JRSection section)-
Methods inherited from class net.sf.jasperreports.engine.util.JRDelegationVisitor
getVisitor, visitBreak, visitChart, visitComponentElement, visitCrosstab, visitElementGroup, visitEllipse, visitFrame, visitGenericElement, visitImage, visitLine, visitRectangle, visitStaticText, visitSubreport, visitTextField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitor
visitBreak, visitChart, visitComponentElement, visitCrosstab, visitElementGroup, visitEllipse, visitFrame, visitGenericElement, visitImage, visitLine, visitRectangle, visitStaticText, visitSubreport, visitTextField
-
-
-
-
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 reportvisitor- the element visitor
-
visitDeepElements
public boolean visitDeepElements()
Description copied from interface:ElementsVisitorDecides whether this visitor is to visit deep/nested elements.- Specified by:
visitDeepElementsin interfaceElementsVisitor- 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)
-
-