Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java @ 8232:8636d2b35cbc
(issue1448) In a list of one element. Select the only element.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 16:24:50 +0200 |
parents | dded480e17c9 |
children | b6371be363b1 |
comparison
equal
deleted
inserted
replaced
8231:dded480e17c9 | 8232:8636d2b35cbc |
---|---|
189 protected void addSedimentLoadInfo (SedimentLoadInfoObject[] sedLoad) { | 189 protected void addSedimentLoadInfo (SedimentLoadInfoObject[] sedLoad) { |
190 for(SedimentLoadInfoObject sl: sedLoad) { | 190 for(SedimentLoadInfoObject sl: sedLoad) { |
191 SedimentLoadInfoRecord rec = new SedimentLoadInfoRecord(sl); | 191 SedimentLoadInfoRecord rec = new SedimentLoadInfoRecord(sl); |
192 sedLoadTable.addData(rec); | 192 sedLoadTable.addData(rec); |
193 } | 193 } |
194 if (sedLoad.length == 1) { | |
195 /* Preselect lists with only one load. */ | |
196 sedLoadTable.selectRecords(new int[] {0}); | |
197 } | |
194 } | 198 } |
195 } | 199 } |
196 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 200 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |