1 7 package org.mmbase.applications.packaging.projects.editors.cloudmodel; 8 9 import java.util.HashMap ; 10 import java.util.Map ; 11 12 public class NeededBuilderField { 13 14 Map descriptions = new HashMap (); 15 Map guinames = new HashMap (); 16 String guitype; 17 int editorinputpos = -1; 18 int editorlistpos = -1; 19 int editorsearchpos = -1; 20 String dbname; 21 String dbtype; 22 boolean dbkey; 23 int dbsize = -1; 24 boolean dbnotnull; 25 String dbstate; 26 27 public String getDBName() { 28 return dbname; 29 } 30 31 public void setDBName(String 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 getDBType() { 52 return dbtype; 53 } 54 55 public void setDBType(String dbtype) { 56 this.dbtype = dbtype; 57 } 58 59 public String getDBState() { 60 return dbstate; 61 } 62 63 public void setDBState(String 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 getGuiType() { 77 return guitype; 78 } 79 80 public void setGuiType(String 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 language,String description) { 109 descriptions.put(language,description); 110 } 111 112 public Map getDescriptions() { 113 return descriptions; 114 } 115 116 public String getDescription(String language) { 117 Object o=descriptions.get(language); 118 if (o!=null) return (String )o; 119 return ""; 120 } 121 122 public String getGuiName(String language) { 123 Object o=guinames.get(language); 124 if (o!=null) return (String )o; 125 return ""; 126 } 127 128 public void setGuiName(String language,String description) { 129 guinames.put(language,description); 130 } 131 132 public Map getGuiNames() { 133 return guinames; 134 } 135 136 } 137 | Popular Tags |