Mercurial > dive4elements > river
changeset 7565:84107f13167c
issue1542: Include validity also in qdtable, reorder code, widen column width.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 13 Nov 2013 08:10:00 +0100 |
parents | c05eff7acd2d |
children | 32563516c485 |
files | gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java |
diffstat | 2 files changed, 15 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java Wed Nov 13 08:09:19 2013 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java Wed Nov 13 08:10:00 2013 +0100 @@ -73,6 +73,14 @@ type.setType(ListGridFieldType.TEXT); type.setWidth("10%"); + ListGridField startTime = new ListGridField("starttime", MESSAGE.starttime()); + startTime.setType(ListGridFieldType.DATE); + startTime.setWidth("60"); + + ListGridField stopTime = new ListGridField("stoptime", MESSAGE.stoptime()); + stopTime.setType(ListGridFieldType.DATE); + stopTime.setWidth("60"); + final NumberFormat nf = NumberFormat.getDecimalFormat(); ListGridField value = new ListGridField("value", MESSAGE.wq_value_q()); @@ -99,8 +107,7 @@ official.setType(ListGridFieldType.TEXT); official.setWidth("25%"); - - setFields(addMax, addMin, select, name, type, value, official); + setFields(addMax, addMin, select, name, type, value, official, startTime, stopTime); } public void hideIconFields () {
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java Wed Nov 13 08:09:19 2013 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java Wed Nov 13 08:10:00 2013 +0100 @@ -47,17 +47,17 @@ name.setType(ListGridFieldType.TEXT); name.setWidth("*"); + ListGridField type = new ListGridField("type", MESSAGE.type()); + type.setType(ListGridFieldType.TEXT); + type.setWidth("50"); + ListGridField startTime = new ListGridField("starttime", MESSAGE.starttime()); startTime.setType(ListGridFieldType.DATE); - startTime.setWidth("50"); + startTime.setWidth("60"); ListGridField stopTime = new ListGridField("stoptime", MESSAGE.stoptime()); stopTime.setType(ListGridFieldType.DATE); - stopTime.setWidth("50"); - - ListGridField type = new ListGridField("type", MESSAGE.type()); - type.setType(ListGridFieldType.TEXT); - type.setWidth("50"); + stopTime.setWidth("60"); final NumberFormat nf = NumberFormat.getDecimalFormat();