Mercurial > dive4elements > river
diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java @ 8417:71144e25a6c9
Add comment to measurement stations info.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 16 Oct 2014 13:39:22 +0200 |
parents | 17db08570637 |
children |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java Thu Oct 16 11:15:09 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationRecord.java Thu Oct 16 13:39:22 2014 +0200 @@ -52,6 +52,7 @@ this.setRiverSide(station.getRiverSide()); this.setStartTime(station.getStartTime()); this.setStopTime(station.getStopTime()); + this.setComment(station.getComment()); } @Override @@ -153,6 +154,15 @@ this.setAttribute("gaugename", value); } + @Override + public String getComment() { + return this.getAttributeAsString("comment"); + } + + private void setComment(String value) { + this.setAttribute("comment", value); + } + public String getLink() { return this.getAttributeAsString("link"); }