01: package jimm.datavision;
02:
03: /**
04: * The section walker interface is used by those wishing to perform an
05: * action on every section in a report. It is used as an argument to
06: * <code>Report.withSectionsDo</code>. Typical use:
07: *
08: * <pre><code>
09: * report.withSectionsDo(new SectionWalker() {
10: * public void step(Section s) {
11: * // Do something with the section
12: * }
13: * });
14: * </code></pre>
15: *
16: * @author Jim Menard, <a href="mailto:jimm@io.com">jimm@io.com</a>
17: */
18: public interface SectionWalker {
19:
20: /**
21: * This method is called once for each section, when used from within
22: * <code>Report.withSectionsDo</code>.
23: *
24: * @param s a section
25: */
26: public void step(Section s);
27:
28: }
|