KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > misc > TestCheckBoxList


1 /*
2  * Copyright (c) 2005 Your Corporation. All Rights Reserved.
3  */

4 package org.apache.myfaces.examples.misc;
5
6 import java.util.ArrayList JavaDoc;
7 import java.util.List JavaDoc;
8
9 /**
10  * @author Sylvain Vieujot (latest modification by $Author: matzew $)
11  * @version $Revision: 1.1 $ $Date: 2005/03/24 16:47:10 $
12  */

13 public class TestCheckBoxList
14 {
15     private List JavaDoc testCheckBoxes;
16     
17     public TestCheckBoxList(){
18         testCheckBoxes = new ArrayList JavaDoc(3);
19         
20         for(int i=0 ; i<3 ; i++)
21             testCheckBoxes.add( new TestCheckBox() );
22     }
23
24     public List JavaDoc getTestCheckBoxes() {
25         return testCheckBoxes;
26     }
27     public void setTestCheckBoxes(List JavaDoc testCheckBoxes) {
28         this.testCheckBoxes = testCheckBoxes;
29     }
30 }
31
Popular Tags