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