Mercurial > dive4elements > river
diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java @ 8412:17db08570637
SCHEMA CHANGE: removed superfluous columns station and river_id from measurement_stations and adapted other components accordingly.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 19:20:26 +0200 |
parents | c702bac7f72e |
children | 71144e25a6c9 |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java Wed Oct 15 14:58:46 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java Wed Oct 15 19:20:26 2014 +0200 @@ -43,17 +43,9 @@ this.setCurveLink(MSG.static_sqrelation()); this.setID(number); this.setName(station.getName()); - if (station.isKmUp()) { - this.setKmEnd(station.getKmStart()); - this.setKmStart(station.getKmEnd()); - } - else { - this.setKmEnd(station.getKmEnd()); - this.setKmStart(station.getKmStart()); - } - this.setKmUp(station.isKmUp()); + this.setKmEnd(station.getKmEnd()); + this.setKmStart(station.getKmStart()); this.setRiverName(station.getRiverName()); - this.setStation(station.getStation()); this.setGaugeName(station.getGaugeName()); this.setMeasurementType(station.getMeasurementType()); this.setOperator(station.getOperator()); @@ -99,24 +91,6 @@ } @Override - public boolean isKmUp() { - return this.getAttributeAsBoolean("kmup"); - } - - private void setKmUp(boolean value) { - this.setAttribute("kmup", value); - } - - @Override - public Double getStation() { - return this.getAttributeAsDouble("station"); - } - - private void setStation(Double station) { - this.setAttribute("station", station); - } - - @Override public String getRiverName() { return this.getAttributeAsString("rivername"); }