comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/QDTable.java @ 6371:19459037b3c7

GWT client: Display official lines in helper panels.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 19 Jun 2013 15:03:05 +0200
parents ea9eef426962
children 3c4c0ea52bbb
comparison
equal deleted inserted replaced
6368:791c7492b4ee 6371:19459037b3c7
64 name.setType(ListGridFieldType.TEXT); 64 name.setType(ListGridFieldType.TEXT);
65 name.setWidth("*"); 65 name.setWidth("*");
66 66
67 ListGridField type = new ListGridField("type", MESSAGE.type()); 67 ListGridField type = new ListGridField("type", MESSAGE.type());
68 type.setType(ListGridFieldType.TEXT); 68 type.setType(ListGridFieldType.TEXT);
69 type.setWidth("20%"); 69 type.setWidth("10%");
70 70
71 final NumberFormat nf = NumberFormat.getDecimalFormat(); 71 final NumberFormat nf = NumberFormat.getDecimalFormat();
72 72
73 ListGridField value = new ListGridField("value", MESSAGE.wq_value_q()); 73 ListGridField value = new ListGridField("value", MESSAGE.wq_value_q());
74 value.setType(ListGridFieldType.FLOAT); 74 value.setType(ListGridFieldType.FLOAT);
86 catch (NumberFormatException nfe) { 86 catch (NumberFormatException nfe) {
87 return v.toString(); 87 return v.toString();
88 } 88 }
89 } 89 }
90 }); 90 });
91 value.setWidth("20%"); 91 value.setWidth("15%");
92 92
93 setFields(addMax, addMin, select, name, type, value); 93 ListGridField official = new ListGridField("official", MESSAGE.official_regulation());
94 official.setType(ListGridFieldType.TEXT);
95 official.setWidth("25%");
96
97
98 setFields(addMax, addMin, select, name, type, value, official);
94 } 99 }
95 100
96 public void hideIconFields () { 101 public void hideIconFields () {
97 hideField("max"); 102 hideField("max");
98 hideField("min"); 103 hideField("min");

http://dive4elements.wald.intevation.org