KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > listexample > DataScrollerList


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.examples.listexample;
17
18 import java.util.ArrayList JavaDoc;
19 import java.util.List JavaDoc;
20
21 /**
22  * DOCUMENT ME!
23  * @author Thomas Spiegl (latest modification by $Author: matzew $)
24  * @version $Revision: 1.1 $ $Date: 2005/03/24 16:47:10 $
25  */

26 public class DataScrollerList
27 {
28     private List JavaDoc _list = new ArrayList JavaDoc();
29     static
30     {
31     }
32
33     public DataScrollerList()
34     {
35         for (int i = 1; i < 995; i++)
36         {
37             _list.add(new SimpleCar(i, "Car Type " + i, "blue"));
38         }
39     }
40
41     public List JavaDoc getList()
42     {
43         return _list;
44     }
45
46 }
47
Popular Tags