Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/SelectProvider.java @ 8860:28df64078f27
Merge with 0862ea5d66baf60e7eee496d130a35157cc9ec12
author | gernotbelger |
---|---|
date | Fri, 19 Jan 2018 11:23:42 +0100 |
parents | 5e38e2924c07 |
children |
comparison
equal
deleted
inserted
replaced
8854:7bbfb24e6eec | 8860:28df64078f27 |
---|---|
162 Label label = new Label(d.getDescription()); | 162 Label label = new Label(d.getDescription()); |
163 label.setValign(VerticalAlignment.TOP); | 163 label.setValign(VerticalAlignment.TOP); |
164 label.setHeight(20); | 164 label.setHeight(20); |
165 label.setWidth(400); | 165 label.setWidth(400); |
166 | 166 |
167 LinkedHashMap<String, String> initial = new LinkedHashMap<String, String>(); | 167 LinkedHashMap<String, String> initial = |
168 new LinkedHashMap<String, String>(); | |
168 ArrayList<FormItem> formItems = new ArrayList<FormItem>(); | 169 ArrayList<FormItem> formItems = new ArrayList<FormItem>(); |
169 | 170 |
170 for (DataItem item: d.getItems()) { | 171 for (DataItem item: d.getItems()) { |
171 initial.put(item.getLabel().replace(' ', '_'), item.getStringValue()); | 172 initial.put( |
172 GWT.log("put: " + item.getLabel().replace(' ', '_') + "=" + item.getStringValue()); | 173 item.getLabel().replace(' ', '_'), item.getStringValue()); |
174 GWT.log("put: " + item.getLabel().replace(' ', '_') | |
175 + "=" + item.getStringValue()); | |
173 | 176 |
174 LinkItem link = new LinkItem(d.getLabel()); | 177 LinkItem link = new LinkItem(d.getLabel()); |
175 link.setLinkTitle(item.getLabel()); // i18n text of the link | 178 link.setLinkTitle(item.getLabel()); // i18n text of the link |
176 link.setAttribute(d.getLabel(), item.getStringValue()); // e.g. "calculation_mode":"foo" | 179 link.setAttribute(d.getLabel(), item.getStringValue()); |
180 // e.g. "calculation_mode":"foo" | |
177 link.setShowTitle(false); | 181 link.setShowTitle(false); |
178 link.setEndRow(true); | 182 link.setEndRow(true); |
179 link.setWidth("350px"); | 183 link.setWidth("350px"); |
180 | 184 |
181 SpacerItem space = new SpacerItem(); | 185 SpacerItem space = new SpacerItem(); |
200 | 204 |
201 VLayout layout = new VLayout(); | 205 VLayout layout = new VLayout(); |
202 layout.setAlign(VerticalAlignment.TOP); | 206 layout.setAlign(VerticalAlignment.TOP); |
203 layout.setHeight(25); | 207 layout.setHeight(25); |
204 | 208 |
205 LinkedHashMap<String, String> initial = new LinkedHashMap<String, String>(); | 209 LinkedHashMap<String, String> initial = |
210 new LinkedHashMap<String, String>(); | |
206 | 211 |
207 int size = data.size(); | 212 int size = data.size(); |
208 | 213 |
209 for (int i = 0; i < size; i++) { | 214 for (int i = 0; i < size; i++) { |
210 Data d = data.get(i); | 215 Data d = data.get(i); |
215 label.setWidth(400); | 220 label.setWidth(400); |
216 | 221 |
217 SelectItem combobox = new SelectItem(d.getLabel()); | 222 SelectItem combobox = new SelectItem(d.getLabel()); |
218 combobox.setWidth(250); | 223 combobox.setWidth(250); |
219 | 224 |
220 LinkedHashMap<String, String> it = new LinkedHashMap<String, String>(); | 225 LinkedHashMap<String, String> it = |
226 new LinkedHashMap<String, String>(); | |
221 | 227 |
222 boolean defaultSet = false; | 228 boolean defaultSet = false; |
223 boolean first = true; | 229 boolean first = true; |
224 | 230 |
225 DataItem def = d.getDefault(); | 231 DataItem def = d.getDefault(); |