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