comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java @ 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 50a95db68e66
children be842e36ce1c
comparison
equal deleted inserted replaced
262:44a340c9becc 263:f56523bf4c55
66 */ 66 */
67 public Canvas create() { 67 public Canvas create() {
68 Config config = Config.getInstance(); 68 Config config = Config.getInstance();
69 String url = config.getServerUrl(); 69 String url = config.getServerUrl();
70 String locale = config.getLocale (); 70 String locale = config.getLocale ();
71 dataTable.setEmptyMessage(MESSAGES.empty_table());
71 72
72 exportService.getCSV(url, locale, uuid, name, 73 exportService.getCSV(url, locale, uuid, name,
73 new AsyncCallback<List>() { 74 new AsyncCallback<List>() {
74 public void onFailure(Throwable caught) { 75 public void onFailure(Throwable caught) {
75 GWT.log("Could not recieve csv."); 76 GWT.log("Could not recieve csv.");
143 fields[3], 144 fields[3],
144 fields[4]); 145 fields[4]);
145 } 146 }
146 147
147 for(int i = 1; i < list.size(); i++) { 148 for(int i = 1; i < list.size(); i++) {
148 GWT.log ("items" + list.size());
149 String[] sItem = (String[])list.get(i); 149 String[] sItem = (String[])list.get(i);
150 ListGridRecord r = new ListGridRecord(); 150 ListGridRecord r = new ListGridRecord();
151 for(int j = 0; j < sItem.length; j++) { 151 for(int j = 0; j < sItem.length; j++) {
152 r.setAttribute(String.valueOf(j), sItem[j]); 152 r.setAttribute(String.valueOf(j), sItem[j]);
153 } 153 }

http://dive4elements.wald.intevation.org