Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java @ 660:627be3ca1ab6
code clean up in states
flys-artifacts/trunk@2068 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 07 Jun 2011 14:28:44 +0000 |
parents | 2dbbb5be30a1 |
children | dda282dcc44f |
comparison
equal
deleted
inserted
replaced
659:ab43f36f4af6 | 660:627be3ca1ab6 |
---|---|
52 } | 52 } |
53 } // class GaugeOrder | 53 } // class GaugeOrder |
54 | 54 |
55 public static final GaugeOrder GAUGE_UP = new GaugeOrder(true); | 55 public static final GaugeOrder GAUGE_UP = new GaugeOrder(true); |
56 public static final GaugeOrder GAUGE_DOWN = new GaugeOrder(false); | 56 public static final GaugeOrder GAUGE_DOWN = new GaugeOrder(false); |
57 | |
58 public WQAdapted() { | |
59 } | |
57 | 60 |
58 /** | 61 /** |
59 * This method creates one element for each gauge of the selected river that | 62 * This method creates one element for each gauge of the selected river that |
60 * is intersected by the given kilometer range. Each element is a tuple of | 63 * is intersected by the given kilometer range. Each element is a tuple of |
61 * (from;to) where <i>from</i> is the lower bounds of the gauge or the lower | 64 * (from;to) where <i>from</i> is the lower bounds of the gauge or the lower |
68 * @param context The CallContext. | 71 * @param context The CallContext. |
69 * | 72 * |
70 * @return a list of elements that consist of tuples of the intersected | 73 * @return a list of elements that consist of tuples of the intersected |
71 * gauges of the selected river. | 74 * gauges of the selected river. |
72 */ | 75 */ |
76 @Override | |
73 protected Element[] createItems( | 77 protected Element[] createItems( |
74 XMLUtils.ElementCreator cr, | 78 XMLUtils.ElementCreator cr, |
75 Artifact artifact, | 79 Artifact artifact, |
76 String name, | 80 String name, |
77 CallContext context) | 81 CallContext context) |
189 protected String getUIProvider() { | 193 protected String getUIProvider() { |
190 return "wq_panel_adapted"; | 194 return "wq_panel_adapted"; |
191 } | 195 } |
192 | 196 |
193 | 197 |
198 @Override | |
194 public boolean validate(Artifact artifact, CallContext context) | 199 public boolean validate(Artifact artifact, CallContext context) |
195 throws IllegalArgumentException | 200 throws IllegalArgumentException |
196 { | 201 { |
197 logger.debug("WQAdapted.validate"); | 202 logger.debug("WQAdapted.validate"); |
198 | 203 |