Mercurial > dive4elements > river
diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.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 | 519023ce3500 |
children | 280c5b44f219 |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java Thu Jan 18 20:10:59 2018 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java Thu Jan 18 20:12:01 2018 +0100 @@ -73,7 +73,8 @@ ListGridField efield = new ListGridField("kmend", "Ende [km]", 60); ListGridField stfield = new ListGridField("station", "Station [km]"); ListGridField lfield = new ListGridField("infolink", "Info"); - ListGridField cfield = new ListGridField("curvelink", MSG.gauge_curve_link()); + ListGridField cfield = new ListGridField( + "curvelink", MSG.gauge_curve_link()); cfield.addRecordClickHandler(this); this.setShowRecordComponents(true); @@ -135,7 +136,8 @@ for (int j = dl.size()-1; j >= 0; --j) { Data d = dl.get(j); String label = d.getLabel(); - GWT.log("GaugeListGrid - setData - label " + label + " " + d.getStringValue()); + GWT.log("GaugeListGrid - setData - label " + + label + " " + d.getStringValue()); if (label.equals("ld_from")) { ldfrom = getDoubleValue(d); } @@ -161,7 +163,8 @@ for (int j = dl.size()-1; j >= 0; --j) { Data d = dl.get(j); String label = d.getLabel(); - GWT.log("GaugeListGrid - setData - label " + label + " " + d.getStringValue()); + GWT.log("GaugeListGrid - setData - label " + + label + " " + d.getStringValue()); if (label.equals("ld_from")) { ldfrom = getDoubleValue(d); } @@ -180,13 +183,19 @@ openOnLocations(locations); return; } - else if (state.equals("state.winfo.reference.curve.input.start")) { + else if (state + .equals("state.winfo.reference.curve.input.start") + ) { getLocations("reference_startpoint", locations, dl); } - else if (state.equals("state.winfo.reference.curve.input.end")) { + else if (state + .equals("state.winfo.reference.curve.input.end") + ) { getLocations("reference_endpoint", locations, dl); } - else if (state.equals("state.winfo.historicalq.reference_gauge")) { + else if (state + .equals("state.winfo.historicalq.reference_gauge") + ) { for (int j = dl.size()-1; j >= 0; --j) { Data d = dl.get(j); String label = d.getLabel(); @@ -275,9 +284,11 @@ } } else if (item.getKmStart() != null && item.getKmEnd() != null) { - // as getStart()/getEnd() return Double objects, they can be null and + // as getStart()/getEnd() return Double objects, + // they can be null and // can cause NPEs when comparing with double... strange... - GWT.log("GaugeListGrid - openOnDistance item " + item.getKmStart() + " " + item.getKmEnd()); + GWT.log("GaugeListGrid - openOnDistance item " + + item.getKmStart() + " " + item.getKmEnd()); if ((start >= item.getKmStart() && start <= item.getKmEnd()) || (end >= item.getKmStart() && end <= item.getKmEnd()) || (start <= item.getKmStart() && end >= item.getKmEnd())) { @@ -455,7 +466,8 @@ int colNum) { if (colNum == ABFLUSSTAFEL_COLUMN) { // display the ablfusstafel cell like a link - return "text-decoration: underline; color: #0000EE; cursor: pointer;"; + return "text-decoration: underline; color: #0000EE; " + + "cursor: pointer;"; } else { return super.getCellCSSText(record, rowNum, colNum);