KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > packaging > projects > editors > cloudmodel > NeededBuilderField


1 /*
2  * This software is OSI Certified Open Source Software.
3  * OSI Certified is a certification mark of the Open Source Initiative.
4  * The license (Mozilla version 1.0) can be read at the MMBase site.
5  * See http://www.MMBase.org/license
6  */

7 package org.mmbase.applications.packaging.projects.editors.cloudmodel;
8
9 import java.util.HashMap JavaDoc;
10 import java.util.Map JavaDoc;
11
12 public class NeededBuilderField {
13
14     Map JavaDoc descriptions = new HashMap JavaDoc();
15     Map JavaDoc guinames = new HashMap JavaDoc();
16     String JavaDoc guitype;
17     int editorinputpos = -1;
18     int editorlistpos = -1;
19     int editorsearchpos = -1;
20     String JavaDoc dbname;
21     String JavaDoc dbtype;
22     boolean dbkey;
23     int dbsize = -1;
24     boolean dbnotnull;
25     String JavaDoc dbstate;
26
27     public String JavaDoc getDBName() {
28         return dbname;
29     }
30
31     public void setDBName(String JavaDoc dbname) {
32         this.dbname = dbname;
33     }
34
35     public boolean getDBKey() {
36         return dbkey;
37     }
38
39     public void setDBKey(boolean dbkey) {
40         this.dbkey = dbkey;
41     }
42
43     public boolean getDBNotNull() {
44         return dbnotnull;
45     }
46
47     public void setDBNotNull(boolean dbnotnull) {
48         this.dbnotnull = dbnotnull;
49     }
50
51     public String JavaDoc getDBType() {
52         return dbtype;
53     }
54
55     public void setDBType(String JavaDoc dbtype) {
56         this.dbtype = dbtype;
57     }
58
59     public String JavaDoc getDBState() {
60         return dbstate;
61     }
62
63     public void setDBState(String JavaDoc dbstate) {
64         this.dbstate = dbstate;
65     }
66
67     public int getDBSize() {
68         return dbsize;
69     }
70
71     public void setDBSize(int dbsize) {
72         this.dbsize = dbsize;
73     }
74
75
76     public String JavaDoc getGuiType() {
77         return guitype;
78     }
79
80     public void setGuiType(String JavaDoc guitype) {
81         this.guitype = guitype;
82     }
83
84     public int getEditorInputPos() {
85         return editorinputpos;
86     }
87
88     public void setEditorInputPos(int editorinputpos) {
89         this.editorinputpos = editorinputpos;
90     }
91
92     public int getEditorListPos() {
93         return editorlistpos;
94     }
95
96     public void setEditorListPos(int editorlistpos) {
97         this.editorlistpos = editorlistpos;
98     }
99
100     public int getEditorSearchPos() {
101         return editorsearchpos;
102     }
103
104     public void setEditorSearchPos(int editorsearchpos) {
105         this.editorsearchpos = editorsearchpos;
106     }
107
108     public void setDescription(String JavaDoc language,String JavaDoc description) {
109         descriptions.put(language,description);
110     }
111
112     public Map JavaDoc getDescriptions() {
113         return descriptions;
114     }
115
116         public String JavaDoc getDescription(String JavaDoc language) {
117              Object JavaDoc o=descriptions.get(language);
118              if (o!=null) return (String JavaDoc)o;
119              return "";
120         }
121
122         public String JavaDoc getGuiName(String JavaDoc language) {
123              Object JavaDoc o=guinames.get(language);
124              if (o!=null) return (String JavaDoc)o;
125              return "";
126         }
127
128     public void setGuiName(String JavaDoc language,String JavaDoc description) {
129         guinames.put(language,description);
130     }
131
132     public Map JavaDoc getGuiNames() {
133         return guinames;
134     }
135
136 }
137
Popular Tags