- Timestamp:
- Apr 9, 2010, 10:56:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/BeanUtil.java
r857 r858 38 38 return bundle; 39 39 } 40 public static boolean getRequired(String type, String key){ 41 String s = getFieldProperty(type, key, 2); 42 if (s.equals("true") )return true; 43 return false; 44 } 40 45 //getRenderer returns rendererType based on properties 41 46 public static String getRenderer(String type, String key){ 47 return getFieldProperty(type, key, 1); 48 } 49 public static String getFieldProperty(String type, String key, int i){ 42 50 String daemon = "director"; 43 51 String res = "inputText"; … … 51 59 key = key.toLowerCase(); 52 60 String result[] = getProperties((daemon+"."+type+"."+key)); 53 if (result[1].equals("boolean")){ 54 return "radioGroup"; 61 if (i == 1) { 62 if (result[1].equals("boolean")){ 63 return "radioGroup"; 64 } 65 if (!(result[0].equals("0"))){ 66 return "selectOneMenu"; 67 } 68 return res; 55 69 } 56 if (!(result[0].equals("0"))){ 57 return "selectOneMenu"; 58 } 59 70 if (i == 2) return result[2]; 60 71 return res; 61 72 } 73 62 74 //Statusmeldungen an den Client 63 75 public static void setInfoMessage(String client, String message){ … … 78 90 } 79 91 92 public static String getAccessType(String type){ 93 if (type.equals("jobdefs")) return "job"; 94 return type; 95 } 96 80 97 }
Note:
See TracChangeset
for help on using the changeset viewer.