[PATCH 3 of 4] issue1542: Profit from refactoring, use same columns/fields for QDTable
Wald Commits
scm-commit at wald.intevation.org
Wed Nov 20 11:05:52 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1384941833 -3600
# Node ID a64ed9f067c62386e884dcc842f3e82ec936637f
# Parent 1f2f64d244fc57420e48b3f0ce6c1f4b6d39ff06
issue1542: Profit from refactoring, use same columns/fields for QDTable.
diff -r 1f2f64d244fc -r a64ed9f067c6 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java
--- 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();
More information about the Dive4elements-commits
mailing list