KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > sample > ListHolder


1 /**
2  * Licensed under the Artistic License; you may not use this file
3  * except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://displaytag.sourceforge.net/license.html
7  *
8  * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */

12 package org.displaytag.sample;
13
14 import java.util.List JavaDoc;
15
16
17 /**
18  * Simple objects which holds a list.
19  * @author epesh
20  * @author Fabrizio Giustina
21  * @version $Revision$ ($Author$)
22  */

23 public class ListHolder extends Object JavaDoc
24 {
25
26     /**
27      * contained list.
28      */

29     private List JavaDoc list;
30
31     /**
32      * Instantiate a new ListHolder and initialize a TestList with 5 elements.
33      */

34     public ListHolder()
35     {
36         this.list = new TestList(15, false);
37     }
38
39     /**
40      * Returns the contained list.
41      * @return a TestList with 15 elements
42      */

43     public final List JavaDoc getList()
44     {
45         return this.list;
46     }
47 }
48
Popular Tags