changeset 7589:a64ed9f067c6

issue1542: Profit from refactoring, use same columns/fields for QDTable.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 20 Nov 2013 11:03:53 +0100
parents 1f2f64d244fc
children a52b820c9006
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java	Wed Nov 20 11:03:26 2013 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java	Wed Nov 20 11:03:53 2013 +0100
@@ -73,13 +73,9 @@
         type.setType(ListGridFieldType.TEXT);
         type.setWidth("10%");
 
-        ListGridField startTime = new ListGridField("starttime", MESSAGE.starttime());
-        startTime.setType(ListGridFieldType.DATE);
-        startTime.setWidth("60");
+        ListGridField startTime = WTable.createYearListGridField("starttime", MESSAGE.starttime());
 
-        ListGridField stopTime = new ListGridField("stoptime", MESSAGE.stoptime());
-        stopTime.setType(ListGridFieldType.DATE);
-        stopTime.setWidth("60");
+        ListGridField stopTime = WTable.createYearListGridField("stoptime", MESSAGE.stoptime());
 
         final NumberFormat nf = NumberFormat.getDecimalFormat();
 

http://dive4elements.wald.intevation.org