From: Tim P <ti...@us...> - 2008-03-19 16:06:24
|
Update of /cvsroot/webmacro/webmacro/src/org/webmacro/directive In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv21381/src/org/webmacro/directive Modified Files: AlternateDirective.java Log Message: Checkstyle: organise imports Index: AlternateDirective.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/src/org/webmacro/directive/AlternateDirective.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** AlternateDirective.java 1 Nov 2005 04:08:04 -0000 1.13 --- AlternateDirective.java 19 Mar 2008 16:06:20 -0000 1.14 *************** *** 21,36 **** */ package org.webmacro.directive; - import org.webmacro.*; - import org.webmacro.engine.BuildContext; - import org.webmacro.engine.BuildException; - import org.webmacro.engine.Variable; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * ! * Use the #alternate directive to create an "alternating" variable, which is ! * useful * for creating tables that use a different background color for each line, etc. * <p> --- 21,40 ---- */ package org.webmacro.directive; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; + + import org.webmacro.Context; + import org.webmacro.FastWriter; + import org.webmacro.Macro; + import org.webmacro.PropertyException; + import org.webmacro.TemplateVisitor; + import org.webmacro.engine.BuildContext; + import org.webmacro.engine.BuildException; + import org.webmacro.engine.Variable; /** * ! * Use the #alternate directive to create an "alternating" variable, * for creating tables that use a different background color for each line, etc. * <p> *************** *** 56,61 **** * <p> * - * - * * <i>expression</i> can be any "list" type understood by WebMacro: Object[], * --- 60,63 ---- *************** *** 77,89 **** * <p> * - * - * * The first time $color is evaluated, it will have the value "red". The next ! * time it ! * ! * is evaluated, it will have the value "blue", and so on through the list. When ! * it gets ! * ! * to the end of the list, it wraps back around to the beginning. * */ --- 79,85 ---- * <p> * * The first time $color is evaluated, it will have the value "red". The next ! * time it is evaluated, it will have the value "blue", and so on through the list. ! * When it gets to the end of the list, it wraps back around to the beginning. * */ *************** *** 189,191 **** return o; } ! } \ No newline at end of file --- 185,187 ---- return o; } ! } |