Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java @ 5527:6dbc111e9aec
WQAdaptedInputPanel: Cosmetics, doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 28 Mar 2013 12:11:13 +0100 |
parents | 35cd6286da2d |
children | cda844f8d126 |
comparison
equal
deleted
inserted
replaced
5526:35cd6286da2d | 5527:6dbc111e9aec |
---|---|
92 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); | 92 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); |
93 | 93 |
94 /** Stores the input panels related to their keys.*/ | 94 /** Stores the input panels related to their keys.*/ |
95 protected Map<String, DoubleArrayPanel> wqranges; | 95 protected Map<String, DoubleArrayPanel> wqranges; |
96 | 96 |
97 /** Index the input panels related to their keys.*/ | 97 /** List of doubleArrayPanels shown. */ |
98 protected ArrayList<DoubleArrayPanel> doubleArrayPanels; | 98 protected ArrayList<DoubleArrayPanel> doubleArrayPanels; |
99 | 99 |
100 /** Stores the min/max values for each q range.*/ | 100 /** Stores the min/max values for each q range.*/ |
101 protected Map<String, double[]> qranges; | 101 protected Map<String, double[]> qranges; |
102 | 102 |
206 }; | 206 }; |
207 | 207 |
208 qdTable.addCellClickHandler(handler); | 208 qdTable.addCellClickHandler(handler); |
209 } | 209 } |
210 | 210 |
211 | |
211 @Override | 212 @Override |
212 public Canvas createOld(DataList dataList) { | 213 public Canvas createOld(DataList dataList) { |
213 List<Data> all = dataList.getAll(); | 214 List<Data> all = dataList.getAll(); |
214 Data wqData = getData(all, "wq_values"); | 215 Data wqData = getData(all, "wq_values"); |
215 Data wqMode = getData(all, "wq_isq"); | 216 Data wqMode = getData(all, "wq_isq"); |
323 } | 324 } |
324 else { | 325 else { |
325 return validateQ(); | 326 return validateQ(); |
326 } | 327 } |
327 } | 328 } |
329 | |
328 | 330 |
329 protected List<String> validateRange(Map<String, double[]> ranges) { | 331 protected List<String> validateRange(Map<String, double[]> ranges) { |
330 List<String> errors = new ArrayList<String>(); | 332 List<String> errors = new ArrayList<String>(); |
331 NumberFormat nf = NumberFormat.getDecimalFormat(); | 333 NumberFormat nf = NumberFormat.getDecimalFormat(); |
332 | 334 |
659 DoubleArrayPanel dap = (DoubleArrayPanel) event.getForm(); | 661 DoubleArrayPanel dap = (DoubleArrayPanel) event.getForm(); |
660 dap.validateForm(event.getItem()); | 662 dap.validateForm(event.getItem()); |
661 } | 663 } |
662 | 664 |
663 | 665 |
666 /** Get the WQD data from servide and stuck them up that tables. */ | |
664 protected void fetchWQData() { | 667 protected void fetchWQData() { |
665 Config config = Config.getInstance(); | 668 Config config = Config.getInstance(); |
666 String locale = config.getLocale (); | 669 String locale = config.getLocale (); |
667 | 670 |
668 ArtifactDescription adescr = artifact.getArtifactDescription(); | 671 ArtifactDescription adescr = artifact.getArtifactDescription(); |
687 if (num == 0) { | 690 if (num == 0) { |
688 return; | 691 return; |
689 } | 692 } |
690 | 693 |
691 addWQInfo(wqi); | 694 addWQInfo(wqi); |
692 | |
693 } | 695 } |
694 } | 696 } |
695 ); | 697 ); |
696 } | 698 } |
697 | 699 |