KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > GResLocalizedField


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 package com.raptus.owxv3.api;
7
8 import java.util.*;
9
10 /**
11  *
12  * <hr>
13  * <table width="100%" border="0">
14  * <tr>
15  * <td width="24%"><b>Filename</b></td><td width="76%">GResLocalizedField.java</td>
16  * </tr>
17  * <tr>
18  * <td width="24%"><b>Author</b></td><td width="76%">REEA</td>
19  * </tr>
20  * <tr>
21  * <td width="24%"><b>Date</b></td><td width="76%">22th of April 2002</td>
22  * </tr>
23  * </table>
24  * <hr>
25  * <table width="100%" border="0">
26  * <tr>
27  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
28  * </tr>
29  * </table>
30  * <hr>
31  */

32 public class GResLocalizedField extends Object JavaDoc
33 {
34     
35     /**
36      *the name of this field
37      */

38     protected String JavaDoc name;
39     
40    /**
41     *The values for this localeField
42     */

43     protected Hashtable values;
44    
45     public GResLocalizedField()
46     {
47         name="";
48         values=new Hashtable();
49     }
50     
51      /**
52      *Setter method for name
53      */

54     public void setName(String JavaDoc n)
55     {
56         name=n;
57     }
58     
59     /**
60      *Getter method for name
61      */

62     public String JavaDoc getName()
63     {
64         return name;
65     }
66     
67     public void setValue(String JavaDoc val,Locale l)
68     {
69         if(val!=null) values.put(l,val);
70     }
71     
72     public String JavaDoc getValue(Locale l)
73     {
74         return (String JavaDoc)values.get(l);
75     }
76     
77     public Hashtable getValues()
78     {
79         return values;
80     }
81     
82 }
83
84
Popular Tags