comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/wq/WQAutoTabSet.java @ 4987:1caf1d735079

Doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 14 Feb 2013 10:49:42 +0100
parents 8c9567dd2e60
children 3d01658d9c9c
comparison
equal deleted inserted replaced
4986:3b9f6765d9dc 4987:1caf1d735079
17 17
18 import de.intevation.flys.client.client.FLYSConstants; 18 import de.intevation.flys.client.client.FLYSConstants;
19 19
20 import de.intevation.flys.client.client.Config; 20 import de.intevation.flys.client.client.Config;
21 21
22 /** Tabset showing non-selectable W and Q/D values for a gauge. */
22 public class WQAutoTabSet extends TabSet { 23 public class WQAutoTabSet extends TabSet {
23 24
25 /** Service to fetch W/Q/D values. */
24 WQInfoServiceAsync wqInfoService = 26 WQInfoServiceAsync wqInfoService =
25 GWT.create(WQInfoService.class); 27 GWT.create(WQInfoService.class);
26 28
27 /** The message class that provides i18n strings.*/ 29 /** The message class that provides i18n strings.*/
28 protected FLYSConstants MESSAGE = GWT.create(FLYSConstants.class); 30 protected FLYSConstants MESSAGE = GWT.create(FLYSConstants.class);
29 31
32 /** Table showing Q/D values. */
30 protected QDTable qdTable; 33 protected QDTable qdTable;
31 34
35 /** Table showing W values. */
32 protected WTable wTable; 36 protected WTable wTable;
33 37
38
39 /** Set up two tabs showing W and Q/D values, fetch and populate tables. */
34 public WQAutoTabSet(String riverName, double[] dist) { 40 public WQAutoTabSet(String riverName, double[] dist) {
35 super(); 41 super();
36 42
37 this.setWidth100(); 43 this.setWidth100();
38 this.setHeight100(); 44 this.setHeight100();
74 } 80 }
75 ); 81 );
76 } 82 }
77 83
78 84
79 protected void addWQInfo (WQInfoObject[] wqi) { 85 /** Populate tables with one value. */
86 private void addWQInfo (WQInfoObject[] wqi) {
80 for(WQInfoObject wi: wqi) { 87 for(WQInfoObject wi: wqi) {
81 WQInfoRecord rec = new WQInfoRecord(wi); 88 WQInfoRecord rec = new WQInfoRecord(wi);
82 89
83 if (wi.getType().equals("W")) { 90 if (wi.getType().equals("W")) {
84 wTable.addData(rec); 91 wTable.addData(rec);

http://dive4elements.wald.intevation.org