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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanDecides 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, visitComponentElement, visitCrosstab, visitElementGroup, visitEllipse, visitFrame, visitGenericElement, visitImage, visitLine, visitRectangle, visitStaticText, visitSubreport, visitTextFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRVisitor
visitBreak, visitComponentElement, visitCrosstab, visitElementGroup, visitEllipse, visitFrame, visitGenericElement, visitImage, visitLine, visitRectangle, visitStaticText, visitSubreport, visitTextField
-
Constructor Details
-
JRElementsVisitor
Creates a report visitor.- Parameters:
visitor- the elements visitor
-
-
Method Details
-
visitReport
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
Visits all the elements of a report.- Parameters:
report- the report
-
visitSection
-
visitBand
-
visitElements
-