KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > mlw > vlh > web > tag > support > ValueListNullSpacer


1 /*
2  * Created on 27.1.2005
3  * azachar
4  */

5 package net.mlw.vlh.web.tag.support;
6
7 import net.mlw.vlh.DefaultListBackedValueList;
8
9 /**
10  * The singleton ValueListNullSpacer is used to render an empty valuelist, ussally
11  * you get this, when any error occured in service's handler.
12  *
13  * @author Andrej Zachar
14  * @version $Revision: 1.2 $ $Date: 2005/08/19 16:06:30 $
15  */

16 final public class ValueListNullSpacer extends DefaultListBackedValueList
17 {
18     private static ValueListNullSpacer valueListSpacer;
19
20     public static ValueListNullSpacer getInstance()
21     {
22         if (valueListSpacer == null)
23         {
24             valueListSpacer = new ValueListNullSpacer();
25         }
26         return valueListSpacer;
27     }
28
29     private ValueListNullSpacer()
30     {
31         super();
32         getList().add(new Spacer());
33     }
34 }
35
Popular Tags