KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dinamica > IRowEvent


1 package dinamica;
2
3 /**
4  * This interface may be implemented by classes
5  * that need to make very custom modifications the the
6  * generated rows when producing a table with the TemplateEngine
7  * class. This way can be produced special effects like
8  * alternate row colors.
9  *
10  * <br>
11  * Creation date: 29/10/2003<br>
12  * Last Update: 29/10/2003<br>
13  * (c) 2003 Martin Cordova<br>
14  * This code is released under the LGPL license<br>
15  * @author Martin Cordova
16  * */

17 public interface IRowEvent
18 {
19
20     /**
21      * This method is called before appending the
22      * row template to the table template
23      * @param rs Recordset used to fill the table, the record
24      * position will the the current record
25      * @param rowTemplate Row buffer
26      * @return Modified row template
27      * @throws Throwable
28      */

29     public String JavaDoc onNewRow(Recordset rs, String JavaDoc rowTemplate)
30         throws Throwable JavaDoc;
31
32 }
33
Popular Tags