comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java @ 7557:2ca1f3991e17

issue1542: Make WQInfoObjects and server provide start and end date for mainvalues, display in table.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 12 Nov 2013 17:11:51 +0100
parents 3c4c0ea52bbb
children 84107f13167c
comparison
equal deleted inserted replaced
7556:7597bae608b3 7557:2ca1f3991e17
45 45
46 ListGridField name = new ListGridField("name", MESSAGE.name()); 46 ListGridField name = new ListGridField("name", MESSAGE.name());
47 name.setType(ListGridFieldType.TEXT); 47 name.setType(ListGridFieldType.TEXT);
48 name.setWidth("*"); 48 name.setWidth("*");
49 49
50 ListGridField startTime = new ListGridField("starttime", MESSAGE.starttime());
51 startTime.setType(ListGridFieldType.DATE);
52 startTime.setWidth("50");
53
54 ListGridField stopTime = new ListGridField("stoptime", MESSAGE.stoptime());
55 stopTime.setType(ListGridFieldType.DATE);
56 stopTime.setWidth("50");
57
50 ListGridField type = new ListGridField("type", MESSAGE.type()); 58 ListGridField type = new ListGridField("type", MESSAGE.type());
51 type.setType(ListGridFieldType.TEXT); 59 type.setType(ListGridFieldType.TEXT);
52 type.setWidth("50"); 60 type.setWidth("50");
53 61
54 final NumberFormat nf = NumberFormat.getDecimalFormat(); 62 final NumberFormat nf = NumberFormat.getDecimalFormat();
75 ListGridField select = new ListGridField("select", MESSAGE.selection()); 83 ListGridField select = new ListGridField("select", MESSAGE.selection());
76 select.setType(ListGridFieldType.ICON); 84 select.setType(ListGridFieldType.ICON);
77 select.setWidth(70); 85 select.setWidth(70);
78 select.setCellIcon(baseUrl + MESSAGE.markerGreen()); 86 select.setCellIcon(baseUrl + MESSAGE.markerGreen());
79 87
80 setFields(select, name, type, value); 88 setFields(select, name, type, value, startTime, stopTime);
81 hideField("select"); 89 hideField("select");
82 } 90 }
83 91
84 public void showSelect() { 92 public void showSelect() {
85 showField("select"); 93 showField("select");

http://dive4elements.wald.intevation.org