# HG changeset patch # User Raimund Renkert # Date 1305041767 0 # Node ID f56523bf4c55c8eff6704c2be51c4c3bae2d8fd1 # Parent 44a340c9becc39524e6c262a05affcb311b3924e Changed the empty table message for helper and data tables. flys-client/trunk@1883 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 44a340c9becc -r f56523bf4c55 flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java, diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.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(); diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties --- 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 diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties --- 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 diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties --- 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 diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java --- 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); diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java --- 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); diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java --- 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() { @@ -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++) { diff -r 44a340c9becc -r f56523bf4c55 flys-client/src/main/java/de/intevation/flys/client/server/CSVExportServiceImpl.java --- 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 Ingo Weinzierl + * @author Raimund Renkert */ public class CSVExportServiceImpl extends RemoteServiceServlet