changeset 2435:114fea2de638

Display better message for empty datacages. flys-client/trunk@4100 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 01 Mar 2012 12:26:34 +0000
parents e8b38b5e4cf9
children 4c9486a6d628
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java
diffstat 6 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Mar 01 12:00:06 2012 +0000
+++ b/flys-client/ChangeLog	Thu Mar 01 12:26:34 2012 +0000
@@ -1,3 +1,14 @@
+2012-03-01  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants.java,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties:
+	  Added message for datacage window.
+
+	* src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java:
+	  Display better message for an empty datacage.
+
 2012-03-01  Raimund Renkert <raimund.renkert@intevation.de>
 
 	Fixed Issue 498.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Thu Mar 01 12:00:06 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Thu Mar 01 12:26:34 2012 +0000
@@ -122,6 +122,8 @@
 
     String databasket();
 
+    String databasket_loading();
+
     String theme_top();
 
     String theme_up();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Thu Mar 01 12:00:06 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Thu Mar 01 12:26:34 2012 +0000
@@ -54,6 +54,7 @@
 show_legend = Show
 scale = Scale
 databasket = Databasket
+databasket_loading = Loading Databasket content
 fix = TODO FIX ANALYSE TODO
 next = Next
 location_distance_state = Choose calculation location(s) / range [km]
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Thu Mar 01 12:00:06 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Thu Mar 01 12:26:34 2012 +0000
@@ -54,6 +54,7 @@
 show_legend = Anzeigen
 scale = Skalierung
 databasket = Datenkorb
+databasket_loading=Lade Datenkorb Inhalt
 fix = Fixierungsanalyse
 next = Weiter
 location_distance_state = Berechnungsort(e) / strecke w\u00e4hlen [km]
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Thu Mar 01 12:00:06 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Thu Mar 01 12:26:34 2012 +0000
@@ -54,6 +54,7 @@
 show_legend = Show
 scale = Scale
 databasket = Databasket
+databasket_loading = Loading Databasket content
 fix = TODO FIX ANALYSE TODO
 next = Next
 location_distance_state = Choose calculation location(s) / range [km]
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java	Thu Mar 01 12:00:06 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java	Thu Mar 01 12:26:34 2012 +0000
@@ -133,6 +133,9 @@
         treeGrid.setShowRoot(false);
         treeGrid.setNodeIcon("[SKIN]/../blank.gif");
         treeGrid.setShowConnectors(true);
+        treeGrid.setLoadingMessage(messages.databasket_loading());
+        treeGrid.setEmptyMessage(messages.databasket_loading());
+        treeGrid.setLoadingDataMessage(messages.databasket_loading());
 
         treeGrid.addRecordDoubleClickHandler(new RecordDoubleClickHandler() {
             @Override

http://dive4elements.wald.intevation.org