Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/CustomFixationChoiceRadioPanel.java @ 9369:1a4d2ce77423
radio choice fix
author | gernotbelger |
---|---|
date | Thu, 02 Aug 2018 17:39:13 +0200 |
parents | 3d006afee054 |
children |
comparison
equal
deleted
inserted
replaced
9366:3d006afee054 | 9369:1a4d2ce77423 |
---|---|
35 private static final long serialVersionUID = 3357071563224461043L; | 35 private static final long serialVersionUID = 3357071563224461043L; |
36 | 36 |
37 private String events[]; | 37 private String events[]; |
38 private int bezugsjahr = 0; | 38 private int bezugsjahr = 0; |
39 | 39 |
40 public CustomFixationChoiceRadioPanel() { | |
41 super("fix_choice"); | |
42 } | |
43 | |
40 @Override | 44 @Override |
41 public Canvas createOld(final DataList dataList) { // wild überschrieben :-( | 45 public Canvas createOld(final DataList dataList) { // wild überschrieben :-( |
42 final List<Data> list = dataList.getAll(); | 46 final List<Data> list = dataList.getAll(); |
43 | 47 |
44 final VLayout root = new VLayout(); | 48 final VLayout root = new VLayout(); |
45 final HLayout layoutChoice = new HLayout(); | 49 final HLayout layoutChoice = new HLayout(); |
46 layoutChoice.setHeight(35); | 50 layoutChoice.setHeight(35); |
47 layoutChoice.setWidth(400); | 51 layoutChoice.setWidth(400); |
48 | 52 |
49 for (final Data item : list) { | 53 for (final Data item : list) { |
50 if ("fix_choice".equals(item.getLabel())) { | 54 if (getDatakey().equals(item.getLabel())) { |
51 final Label labelLabel = new Label(this.MSG.bundu_bezugswst_fix_choice_title()); | 55 final Label labelLabel = new Label(this.MSG.bundu_bezugswst_fix_choice_title()); |
52 final Label valueLabel = new Label(item.getItems()[0].getLabel()); | 56 final Label valueLabel = new Label(item.getItems()[0].getLabel()); |
53 | 57 |
54 labelLabel.setWidth(200); | 58 labelLabel.setWidth(200); |
55 valueLabel.setWidth(180); | 59 valueLabel.setWidth(180); |
104 DataItem firstItem = new DefaultDataItem(null, null, ""); | 108 DataItem firstItem = new DefaultDataItem(null, null, ""); |
105 DataItem secItem = new DefaultDataItem(null, null, ""); | 109 DataItem secItem = new DefaultDataItem(null, null, ""); |
106 DataItem startItem = new DefaultDataItem(null, null, ""); | 110 DataItem startItem = new DefaultDataItem(null, null, ""); |
107 DataItem endItem = new DefaultDataItem(null, null, ""); | 111 DataItem endItem = new DefaultDataItem(null, null, ""); |
108 | 112 |
109 final DataItem item = new DefaultDataItem("fix_choice", "fix_choice", value); | 113 final DataItem item = new DefaultDataItem(getDatakey(), getDatakey(), value); |
110 data.add(new DefaultData("fix_choice", null, null, new DataItem[] { item })); | 114 data.add(new DefaultData(getDatakey(), null, null, new DataItem[] { item })); |
111 | 115 |
112 if (value.equals("state.bundu.wst.fix.auto")) { | 116 if (value.equals("state.bundu.wst.fix.auto")) { |
113 // set gauges: (do not appear in create old, but need to be set for calculation purpose | 117 // set gauges: (do not appear in create old, but need to be set for calculation purpose |
114 final LinkedHashMap<String, String> map = FixGaugeSelectPanel.getMapValues(this.MSG); | 118 final LinkedHashMap<String, String> map = FixGaugeSelectPanel.getMapValues(this.MSG); |
115 final String mnq = this.MSG.gauge_mnq(); | 119 final String mnq = this.MSG.gauge_mnq(); |