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 void
visitBand(JRBand band)
boolean
visitDeepElements()
Decides whether this visitor is to visit deep/nested elements.protected void
visitElements(List<JRChild> elements)
void
visitReport(JRReport report)
Visits all the elements of a report.static void
visitReport(JRReport report, JRVisitor visitor)
Visits all the elements of a report.protected void
visitSection(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, 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, 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:ElementsVisitor
Decides whether this visitor is to visit deep/nested elements.- Specified by:
visitDeepElements
in 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)
-
-