comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.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 07df414d5d88
children 34dc0163ad2d
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
288 public void onRecordClick (RecordClickEvent e) { 288 public void onRecordClick (RecordClickEvent e) {
289 Record r = e.getRecord(); 289 Record r = e.getRecord();
290 if (isLocationMode ()) { 290 if (isLocationMode ()) {
291 appendLocation(r.getAttribute("to")); 291 appendLocation(r.getAttribute("to"));
292 } else { 292 } else {
293 /* Distance and double pin behavior is only defined for 293 /* Distance and double pin behavior is only
294 * location mode. */ 294 * defined for location mode. */
295 GWT.log("Unhandled input state."); 295 GWT.log("Unhandled input state.");
296 } 296 }
297 } 297 }
298 }); 298 });
299 } 299 }
318 public void onRecordClick (RecordClickEvent e) { 318 public void onRecordClick (RecordClickEvent e) {
319 Record r = e.getRecord(); 319 Record r = e.getRecord();
320 if (!isLocationMode ()) { 320 if (!isLocationMode ()) {
321 setTo(r.getAttribute("from")); 321 setTo(r.getAttribute("from"));
322 } else { 322 } else {
323 /* Distance and double pin behavior is only defined for 323 /* Distance and double pin behavior is only
324 * location mode. */ 324 * defined for location mode. */
325 GWT.log("Unhandled input state."); 325 GWT.log("Unhandled input state.");
326 } 326 }
327 } 327 }
328 }); 328 });
329 } 329 }
882 } 882 }
883 883
884 Data dFrom = getDataFrom(); 884 Data dFrom = getDataFrom();
885 Data dTo = getDataTo(); 885 Data dTo = getDataTo();
886 Data dStep = getDataStep(); 886 Data dStep = getDataStep();
887 DataItem loc = new DefaultDataItem("ld_locations", "ld_locations",""); 887 DataItem loc = new DefaultDataItem(
888 "ld_locations", "ld_locations","");
888 889
889 data.add(dFrom); 890 data.add(dFrom);
890 data.add(dTo); 891 data.add(dTo);
891 data.add(dStep); 892 data.add(dStep);
892 data.add(new DefaultData( 893 data.add(new DefaultData(
1158 RadioGroupItem radio = new RadioGroupItem(FIELD_MODE); 1159 RadioGroupItem radio = new RadioGroupItem(FIELD_MODE);
1159 radio.setShowTitle(false); 1160 radio.setShowTitle(false);
1160 radio.setVertical(false); 1161 radio.setVertical(false);
1161 radio.setWrap(false); 1162 radio.setWrap(false);
1162 1163
1163 LinkedHashMap<String, String> values = new LinkedHashMap<String, String>(); 1164 LinkedHashMap<String, String> values =
1165 new LinkedHashMap<String, String>();
1164 values.put(FIELD_VALUE_LOCATION, MESSAGES.location()); 1166 values.put(FIELD_VALUE_LOCATION, MESSAGES.location());
1165 values.put(FIELD_VALUE_DISTANCE, MESSAGES.distance()); 1167 values.put(FIELD_VALUE_DISTANCE, MESSAGES.distance());
1166 1168
1167 LinkedHashMap<String, String> initial = new LinkedHashMap<String, String>(); 1169 LinkedHashMap<String, String> initial =
1170 new LinkedHashMap<String, String>();
1168 initial.put(FIELD_MODE, FIELD_VALUE_DISTANCE); 1171 initial.put(FIELD_MODE, FIELD_VALUE_DISTANCE);
1169 1172
1170 radio.setValueMap(values); 1173 radio.setValueMap(values);
1171 radio.addChangeHandler(this); 1174 radio.addChangeHandler(this);
1172 1175

http://dive4elements.wald.intevation.org