changeset 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 e3fdca2c4850
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java	Mon Sep 08 16:24:16 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java	Mon Sep 08 16:24:50 2014 +0200
@@ -191,6 +191,10 @@
             SedimentLoadInfoRecord rec = new SedimentLoadInfoRecord(sl);
             sedLoadTable.addData(rec);
         }
+        if (sedLoad.length == 1) {
+            /* Preselect lists with only one load. */
+            sedLoadTable.selectRecords(new int[] {0});
+        }
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org