changeset 263:f56523bf4c55

Changed the empty table message for helper and data tables. flys-client/trunk@1883 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 May 2011 15:36:07 +0000
parents 44a340c9becc
children 337f5a7c7160
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/LocationDistancePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java flys-client/src/main/java/de/intevation/flys/client/server/CSVExportServiceImpl.java
diffstat 9 files changed, 27 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/ChangeLog	Tue May 10 15:36:07 2011 +0000
@@ -1,3 +1,19 @@
+2011-05-10  Raimund Renkert <rrenkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java,
+	  src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java,
+	  src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java:
+	  Changed the empty table text from default to "Loading data".
+
+	* src/main/java/de/intevation/flys/client/client/FLYSConstants.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants.java:
+	  Added i18n strings for empty table text.
+
+	* src/main/java/de/intevation/flys/client/server/CSVExportServiceImpl.java:
+	  Changed author.
+
 2011-05-10	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue May 10 15:36:07 2011 +0000
@@ -38,6 +38,8 @@
 
     String load_projects();
 
+    String empty_table();
+
     String date_format();
 
     String datetime_format();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue May 10 15:36:07 2011 +0000
@@ -13,6 +13,7 @@
 warning_language = You go to start a new session when you choose the language.
 no_projects = No existing calculations found.
 load_projects = Load calculations...
+empty_table = Loading data...
 date_format = yyyy-MM-dd
 datetime_format = yyyy-MM-dd HH:mm
 new_project = New Project
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue May 10 15:36:07 2011 +0000
@@ -13,6 +13,7 @@
 warning_language = Das \u00c4ndern der Sprache \u00f6ffnet eine neue Sitzung.
 no_projects = Keine alten Berechnungen gefunden.
 load_projects = Lade Berechnungen...
+empty_table = Lade Daten...
 date_format = dd.MM.yyyy
 datetime_format = dd.MM.yyyy HH:mm
 new_project = Neues Projekt
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue May 10 15:36:07 2011 +0000
@@ -13,6 +13,7 @@
 warning_language = You go to start a new session when you choose the language.
 no_projects = No existing calculations found.
 load_projects = Load calculations...
+empty_table = Loading data...
 date_format = yyyy-MM-dd
 datetime_format = yyyy-MM-dd HH:mm
 new_project = New Project
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java	Tue May 10 15:36:07 2011 +0000
@@ -183,6 +183,7 @@
         distanceTable.setShowRecordComponents(true);
         distanceTable.setShowRecordComponentsByCell(true);
         distanceTable.setHeight100();
+        distanceTable.setEmptyMessage(MESSAGES.empty_table());
 
         ListGridField addDistance = new ListGridField ("", "");
         addDistance.setType (ListGridFieldType.ICON);
@@ -247,6 +248,7 @@
         locationsTable.setShowRecordComponents(true);
         locationsTable.setShowRecordComponentsByCell(true);
         locationsTable.setHeight100();
+        locationsTable.setEmptyMessage(MESSAGES.empty_table());
 
         ListGridField addLocation = new ListGridField ("", "");
         addLocation.setType (ListGridFieldType.ICON);
@@ -298,6 +300,7 @@
         locationDistanceTable.setShowRecordComponents(true);
         locationDistanceTable.setShowRecordComponentsByCell(true);
         locationDistanceTable.setHeight100();
+        locationDistanceTable.setEmptyMessage(MESSAGES.empty_table());
 
         ListGridField addfrom = new ListGridField ("", "");
         addfrom.setType (ListGridFieldType.ICON);
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Tue May 10 15:36:07 2011 +0000
@@ -117,6 +117,7 @@
         locationTable.setShowRecordComponents(true);
         locationTable.setShowRecordComponentsByCell(true);
         locationTable.setHeight(300);
+        locationTable.setEmptyMessage(MESSAGES.emptyTable());
 
         ListGridField addLocation = new ListGridField ("", "");
         addLocation.setType (ListGridFieldType.ICON);
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java	Tue May 10 15:36:07 2011 +0000
@@ -68,6 +68,7 @@
         Config config    = Config.getInstance();
         String url       = config.getServerUrl();
         String locale    = config.getLocale ();
+        dataTable.setEmptyMessage(MESSAGES.empty_table());
 
         exportService.getCSV(url, locale, uuid, name,
             new AsyncCallback<List>() {
@@ -145,7 +146,6 @@
         }
 
         for(int i = 1; i < list.size(); i++) {
-            GWT.log ("items" + list.size());
             String[] sItem = (String[])list.get(i);
             ListGridRecord r = new ListGridRecord();
             for(int j = 0; j < sItem.length; j++) {
--- a/flys-client/src/main/java/de/intevation/flys/client/server/CSVExportServiceImpl.java	Tue May 10 13:44:57 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/CSVExportServiceImpl.java	Tue May 10 15:36:07 2011 +0000
@@ -25,7 +25,7 @@
 
 
 /**
- * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
+ * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
  */
 public class CSVExportServiceImpl
 extends      RemoteServiceServlet

http://dive4elements.wald.intevation.org