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