Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java @ 8243:0a994bbe645e
Suggestion: sort measurement stations along the river and only along the river.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 09 Sep 2014 12:03:46 +0200 |
parents | 6f8f13d829e5 |
children | 2c20907f8dd0 |
comparison
equal
deleted
inserted
replaced
8242:f8ea1a7ecde6 | 8243:0a994bbe645e |
---|---|
79 } | 79 } |
80 } | 80 } |
81 | 81 |
82 private void addStation(MeasurementStation station, | 82 private void addStation(MeasurementStation station, |
83 List<MeasurementStation> empty) { | 83 List<MeasurementStation> empty) { |
84 /* switch off sorting stations without range to the end | |
84 if (station.getKmStart() != null && station.getKmEnd() != null) { | 85 if (station.getKmStart() != null && station.getKmEnd() != null) { |
85 addStation(station); | 86 addStation(station); |
86 } | 87 } |
87 else { | 88 else { |
88 empty.add(station); | 89 empty.add(station); |
89 } | 90 } |
91 */ | |
92 addStation(station); | |
90 } | 93 } |
91 | 94 |
92 private void addStation(MeasurementStation station) { | 95 private void addStation(MeasurementStation station) { |
93 ListGridRecord record = new MeasurementStationRecord(station); | 96 ListGridRecord record = new MeasurementStationRecord(station); |
94 this.addData(record); | 97 this.addData(record); |