comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/CustomFixationChoiceRadioPanel.java @ 9366:3d006afee054

bundu.bezugswst workflow reviewed
author gernotbelger
date Thu, 02 Aug 2018 15:06:22 +0200
parents c7e5285d434f
children 1a4d2ce77423
comparison
equal deleted inserted replaced
9365:ba1e2e8f05d1 9366:3d006afee054
93 } 93 }
94 return super.create(dataList); 94 return super.create(dataList);
95 } 95 }
96 96
97 @Override 97 @Override
98 protected Data[] getData() { // TODO: wild überschreiben :-( 98 protected Data[] getData() {
99 final String value = this.form.getValueAsString("selection"); 99 final String value = this.form.getValueAsString("selection");
100 final List<Data> data = new ArrayList<Data>(); 100 final List<Data> data = new ArrayList<Data>();
101 101
102 // Default-values for data. they have to be reset, if user switches from auto to manual 102 // Default-values for data. they have to be reset, if user switches from auto to manual
103 IntegerArrayData iad = new IntegerArrayData("events", "events", new IntDataItem[] {}); 103 IntegerArrayData iad = new IntegerArrayData("events", "events", new IntDataItem[] {});
107 DataItem endItem = new DefaultDataItem(null, null, ""); 107 DataItem endItem = new DefaultDataItem(null, null, "");
108 108
109 final DataItem item = new DefaultDataItem("fix_choice", "fix_choice", value); 109 final DataItem item = new DefaultDataItem("fix_choice", "fix_choice", value);
110 data.add(new DefaultData("fix_choice", null, null, new DataItem[] { item })); 110 data.add(new DefaultData("fix_choice", null, null, new DataItem[] { item }));
111 111
112 if (value.equals("state.bundu.fix.auto")) { 112 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 113 // 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); 114 final LinkedHashMap<String, String> map = FixGaugeSelectPanel.getMapValues(this.MSG);
115 final String mnq = this.MSG.gauge_mnq(); 115 final String mnq = this.MSG.gauge_mnq();
116 final String hq5 = this.MSG.gauge_hq5(); 116 final String hq5 = this.MSG.gauge_hq5();
117 String firstKey = "-1"; 117 String firstKey = "-1";

http://dive4elements.wald.intevation.org