Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/range/DischargeInfoDataSource.java @ 4115:0cc2c3d89a9d
#900 Added complete start and end date to the discharge info service and display on in the client side.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 12 Oct 2012 09:27:18 +0200 |
parents | f30919997e57 |
children | 651b93c10dc5 |
comparison
equal
deleted
inserted
replaced
4114:ae5119da92cd | 4115:0cc2c3d89a9d |
---|---|
1 package de.intevation.flys.client.client.ui.range; | 1 package de.intevation.flys.client.client.ui.range; |
2 | |
3 import java.util.Date; | |
2 | 4 |
3 import com.google.gwt.core.client.GWT; | 5 import com.google.gwt.core.client.GWT; |
4 | 6 |
5 import com.smartgwt.client.data.DataSource; | 7 import com.smartgwt.client.data.DataSource; |
6 import com.smartgwt.client.data.DataSourceField; | 8 import com.smartgwt.client.data.DataSourceField; |
7 import com.smartgwt.client.types.DSDataFormat; | 9 import com.smartgwt.client.types.DSDataFormat; |
8 import com.smartgwt.client.types.FieldType; | 10 import com.smartgwt.client.types.FieldType; |
11 import com.smartgwt.client.util.DateDisplayFormatter; | |
9 | 12 |
10 | 13 |
11 public class DischargeInfoDataSource extends DataSource { | 14 public class DischargeInfoDataSource extends DataSource { |
12 | 15 |
13 public static final String XPATH_DISCHARGE_DEFAULT = "/discharges/discharge"; | 16 public static final String XPATH_DISCHARGE_DEFAULT = "/discharges/discharge"; |
19 | 22 |
20 DataSourceField desc = new DataSourceField( | 23 DataSourceField desc = new DataSourceField( |
21 "description", FieldType.TEXT, "description"); | 24 "description", FieldType.TEXT, "description"); |
22 | 25 |
23 DataSourceField start = new DataSourceField( | 26 DataSourceField start = new DataSourceField( |
24 "start", FieldType.INTEGER, "start"); | 27 "start", FieldType.TEXT, "start"); |
25 | 28 |
26 DataSourceField end = new DataSourceField( | 29 DataSourceField end = new DataSourceField( |
27 "end", FieldType.INTEGER, "end"); | 30 "end", FieldType.TEXT, "end"); |
28 | 31 |
29 setFields(desc, start, end); | 32 setFields(desc, start, end); |
30 setDataURL(getServiceURL(url, gauge)); | 33 setDataURL(getServiceURL(url, gauge)); |
31 } | 34 } |
32 | 35 |