comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixGaugeSelectPanel.java @ 2884:88bca9f735c0

Implemented filter for fix analysis helper widgets. flys-client/trunk@4567 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 01 Jun 2012 10:27:14 +0000
parents cc5969df0490
children 12f58f719125
comparison
equal deleted inserted replaced
2883:c3feb721035c 2884:88bca9f735c0
153 // No selection, return false. 153 // No selection, return false.
154 return false; 154 return false;
155 } 155 }
156 156
157 157
158 public void setFilter(FixFilter filter) {
159 this.fixFilter = filter;
160 }
161
162
163 public FixFilter getFilter() {
164 return this.fixFilter;
165 }
166
167 public void success() {} 158 public void success() {}
168 159
169 protected boolean saveClassValues() { 160 protected boolean saveClassValues() {
170 String v1 = from.getValueAsString(); 161 String v1 = from.getValueAsString();
171 String v2 = to.getValueAsString(); 162 String v2 = to.getValueAsString();
173 int v1i = Integer.valueOf(v1).intValue(); 164 int v1i = Integer.valueOf(v1).intValue();
174 int v2i = Integer.valueOf(v2).intValue(); 165 int v2i = Integer.valueOf(v2).intValue();
175 if (v1i <= v2i) { 166 if (v1i <= v2i) {
176 this.first = v1; 167 this.first = v1;
177 this.second = v2; 168 this.second = v2;
178
179 this.fixFilter.setFromClass(v1i);
180 this.fixFilter.setToClass(v2i);
181 return true; 169 return true;
182 } 170 }
183 } 171 }
184 catch(NumberFormatException nfe) { 172 catch(NumberFormatException nfe) {
185 return false; 173 return false;

http://dive4elements.wald.intevation.org