comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/SelectProvider.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents de92e0cdebdc
children
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
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();

http://dive4elements.wald.intevation.org