Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixationPanel.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 | 319aa972a1a3 |
children | fa8897698133 02739b8c010d |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
61 extends AbstractUIProvider | 61 extends AbstractUIProvider |
62 implements ResizedHandler | 62 implements ResizedHandler |
63 { | 63 { |
64 private static final long serialVersionUID = -3667553404493415619L; | 64 private static final long serialVersionUID = -3667553404493415619L; |
65 | 65 |
66 protected static HashMap<String, FixationPanel> instances = new HashMap<String, FixationPanel>(); | 66 protected static HashMap<String, FixationPanel> instances = |
67 new HashMap<String, FixationPanel>(); | |
67 | 68 |
68 /** The message class that provides i18n strings. */ | 69 /** The message class that provides i18n strings. */ |
69 protected FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); | 70 protected FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); |
70 | 71 |
71 protected FixingsOverviewServiceAsync overviewService = | 72 protected FixingsOverviewServiceAsync overviewService = |
78 protected Tab chart; | 79 protected Tab chart; |
79 protected VLayout chartContainer; | 80 protected VLayout chartContainer; |
80 protected Img chartImg; | 81 protected Img chartImg; |
81 protected TextItem kmText; | 82 protected TextItem kmText; |
82 | 83 |
83 public static final DateTimeFormat DTF = DateTimeFormat.getFormat("dd.MM.yyyy"); | 84 public static final DateTimeFormat DTF = DateTimeFormat.getFormat( |
85 "dd.MM.yyyy"); | |
84 | 86 |
85 | 87 |
86 public FixationPanel() { | 88 public FixationPanel() { |
87 chartImg = new Img(); | 89 chartImg = new Img(); |
88 htmlOverview = ""; | 90 htmlOverview = ""; |
422 return jfix.toString(); | 424 return jfix.toString(); |
423 } | 425 } |
424 return ""; | 426 return ""; |
425 } | 427 } |
426 | 428 |
427 protected static JSONObject createFilter(FixFilter filter, JSONObject root) { | 429 protected static JSONObject createFilter( |
430 FixFilter filter, | |
431 JSONObject root | |
432 ) { | |
428 double fromKm = filter.getFromKm(); | 433 double fromKm = filter.getFromKm(); |
429 double toKm = filter.getToKm(); | 434 double toKm = filter.getToKm(); |
430 boolean hasDate = filter.hasDate(); | 435 boolean hasDate = filter.hasDate(); |
431 | 436 |
432 if (fromKm >= 0 && toKm >= 0 && fromKm <= toKm) { | 437 if (fromKm >= 0 && toKm >= 0 && fromKm <= toKm) { |