Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 631:a9af60c84dca
Small bugfixes in the WQ selection state.
flys-artifacts/trunk@1996 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 24 May 2011 13:24:24 +0000 |
parents | 51b69bca4560 |
children | d8c47520c726 |
comparison
equal
deleted
inserted
replaced
630:40d3039f85ac | 631:a9af60c84dca |
---|---|
646 * This method returns the Q values. | 646 * This method returns the Q values. |
647 * | 647 * |
648 * @return the selected Q values or null, if no Q values are selected. | 648 * @return the selected Q values or null, if no Q values are selected. |
649 */ | 649 */ |
650 public double[] getQs() { | 650 public double[] getQs() { |
651 StateData dMode = getData("wq_mode"); | 651 StateData dMode = getData("wq_mode"); |
652 StateData dSingle = getData("wq_single"); | 652 StateData dSelection = getData("wq_selection"); |
653 | 653 |
654 String mode = dMode != null ? (String) dMode.getValue() : ""; | 654 String mode = dMode != null ? (String) dMode.getValue() : ""; |
655 String sel = dSelection != null ? (String)dSelection.getValue() : null; | |
655 | 656 |
656 if (mode.equals("Q")) { | 657 if (mode.equals("Q")) { |
657 if (dSingle != null) { | 658 if (sel != null && sel.equals("single")) { |
658 return getSingleWQValues(); | 659 return getSingleWQValues(); |
659 } | 660 } |
660 else { | 661 else { |
661 return getWQTriple(); | 662 return getWQTriple(); |
662 } | 663 } |