KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > formview > displayer > ForEach


1 package net.sourceforge.formview.displayer;
2
3 /**
4  *
5  * Description : Manage for each List (eg : for HTML select multiple with
6  * several selected option).
7  *
8  * @version 1.0.0
9  * @author <a HREF="mailto:angelo.zerr@gmail.com">Angelo ZERR</a>
10  *
11  */

12 public class ForEach extends BaseElement {
13
14     private String JavaDoc items;
15     private String JavaDoc var;
16     
17     public String JavaDoc getItems() {
18         return items;
19     }
20     public void setItems(String JavaDoc items) {
21         this.items = items;
22     }
23     public String JavaDoc getVar() {
24         return var;
25     }
26     public void setVar(String JavaDoc var) {
27         this.var = var;
28     }
29     
30     public String JavaDoc toString() {
31         StringBuffer JavaDoc results = new StringBuffer JavaDoc();
32         results.append("\t\titems = " + items + "\n");
33         results.append("\t\tvar = " + var + "\n");
34         results.append(super.toString());
35         return results.toString();
36     }
37     
38 }
39
Popular Tags