KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > util > common > ConfigKeyUtil


1 /**
2  *
3  */

4 package za.org.coefficient.util.common;
5
6 /**
7  * @author pieter20 Apr 26, 2005 This class is based on suggestions by tfogwill
8  * It will store the field name to display as well as the field type
9  *
10  */

11 public class ConfigKeyUtil {
12
13     private String JavaDoc fieldName;
14
15     // private String typesSupported[] ={"textArea", "string","hidden"};
16
private String JavaDoc type;
17
18     // or
19
public static String JavaDoc TYPE_TEXTAREA = "textarea";
20
21     public static String JavaDoc TYPE_TEXTFIELD = "textfield";
22     
23     public static String JavaDoc RADIO_BUTTON = "radiobutton";
24
25     /**
26      * @return Returns the fieldName. Apr 26, 2005 pieter20
27      */

28     public String JavaDoc getFieldName() {
29         return fieldName;
30     }
31
32     /**
33      * @param fieldName
34      * The fieldName to set. Apr 26, 2005 pieter20
35      */

36     public void setFieldName(String JavaDoc fieldName) {
37         this.fieldName = fieldName;
38     }
39
40     /**
41      * @return Returns the type. Apr 26, 2005 pieter20
42      */

43     public String JavaDoc getType() {
44         return type;
45     }
46
47     /**
48      * @param type
49      * The type to set. Apr 26, 2005 pieter20
50      */

51     public void setType(String JavaDoc type) {
52         this.type = type;
53     }
54
55 }
56
Popular Tags