Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterMatrix.java @ 3705:f84ed73311f2
Added UI for minfo bed quality calculation and added new services for overview
charts.
flys-client/trunk@5444 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 12 Sep 2012 14:32:17 +0000 |
parents | a9cdd62aa73e |
children | 3228d65b0db9 |
comparison
equal
deleted
inserted
replaced
3704:1ea53a363db4 | 3705:f84ed73311f2 |
---|---|
13 import com.google.gwt.user.client.ui.Widget; | 13 import com.google.gwt.user.client.ui.Widget; |
14 import com.google.gwt.user.client.ui.ClickListener; | 14 import com.google.gwt.user.client.ui.ClickListener; |
15 | 15 |
16 import com.smartgwt.client.widgets.Label; | 16 import com.smartgwt.client.widgets.Label; |
17 | 17 |
18 import de.intevation.flys.client.client.FLYSConstants; | |
18 import de.intevation.flys.client.shared.model.DataItem; | 19 import de.intevation.flys.client.shared.model.DataItem; |
19 import de.intevation.flys.client.shared.model.IntegerOptionsData; | 20 import de.intevation.flys.client.shared.model.IntegerOptionsData; |
20 import de.intevation.flys.client.shared.model.StringOptionsData; | 21 import de.intevation.flys.client.shared.model.StringOptionsData; |
21 | 22 |
22 | 23 |
42 public String getValue(String label) { | 43 public String getValue(String label) { |
43 return values.get(label); | 44 return values.get(label); |
44 } | 45 } |
45 } // end of class Column | 46 } // end of class Column |
46 | 47 |
48 /** The message class that provides i18n strings.*/ | |
49 protected FLYSConstants MESSAGE = GWT.create(FLYSConstants.class); | |
47 | 50 |
48 public static final int CELL_HEIGHT = 25; | 51 public static final int CELL_HEIGHT = 25; |
49 | 52 |
50 private Map<String, Column> columns; | 53 private Map<String, Column> columns; |
51 private List<String> columnNames; | 54 private List<String> columnNames; |
121 String columnName = columnNames.get(i); | 124 String columnName = columnNames.get(i); |
122 Column col = columns.get(columnName); | 125 Column col = columns.get(columnName); |
123 | 126 |
124 selected.put(columnName, new ArrayList<String>()); | 127 selected.put(columnName, new ArrayList<String>()); |
125 | 128 |
126 grid.setWidget(0, i+1, createLabel(columnName)); | 129 grid.setWidget(0, i+1, createLabel(MESSAGE.getString(columnName))); |
127 | 130 |
128 for (int j = 0, o = valueNames.size(); j < o; j++) { | 131 for (int j = 0, o = valueNames.size(); j < o; j++) { |
129 String valueName = valueNames.get(j); | 132 String valueName = valueNames.get(j); |
130 String value = col.getValue(valueName); | 133 String value = col.getValue(valueName); |
131 | 134 |