comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java @ 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 1244db8cd1d9
children 5e38e2924c07
comparison
equal deleted inserted replaced
7588:1f2f64d244fc 7589:a64ed9f067c6
71 71
72 ListGridField type = new ListGridField("type", MESSAGE.type()); 72 ListGridField type = new ListGridField("type", MESSAGE.type());
73 type.setType(ListGridFieldType.TEXT); 73 type.setType(ListGridFieldType.TEXT);
74 type.setWidth("10%"); 74 type.setWidth("10%");
75 75
76 ListGridField startTime = new ListGridField("starttime", MESSAGE.starttime()); 76 ListGridField startTime = WTable.createYearListGridField("starttime", MESSAGE.starttime());
77 startTime.setType(ListGridFieldType.DATE);
78 startTime.setWidth("60");
79 77
80 ListGridField stopTime = new ListGridField("stoptime", MESSAGE.stoptime()); 78 ListGridField stopTime = WTable.createYearListGridField("stoptime", MESSAGE.stoptime());
81 stopTime.setType(ListGridFieldType.DATE);
82 stopTime.setWidth("60");
83 79
84 final NumberFormat nf = NumberFormat.getDecimalFormat(); 80 final NumberFormat nf = NumberFormat.getDecimalFormat();
85 81
86 ListGridField value = new ListGridField("value", MESSAGE.wq_value_q()); 82 ListGridField value = new ListGridField("value", MESSAGE.wq_value_q());
87 value.setType(ListGridFieldType.FLOAT); 83 value.setType(ListGridFieldType.FLOAT);

http://dive4elements.wald.intevation.org