KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jimm > datavision > SectionWalker


1 package jimm.datavision;
2
3 /**
4  * The section walker interface is used by those wishing to perform an
5  * action on every section in a report. It is used as an argument to
6  * <code>Report.withSectionsDo</code>. Typical use:
7  *
8  * <pre><code>
9  * 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 }
29
Popular Tags