Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQSelect.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 | a9af60c84dca |
children | 610d0e0f4f85 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQSelect.java Tue Jun 07 13:15:02 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQSelect.java Tue Jun 07 14:28:44 2011 +0000 @@ -90,6 +90,7 @@ } + @Override protected Element[] createItems( XMLUtils.ElementCreator cr, Artifact artifact, @@ -115,8 +116,10 @@ return new Element[] { maxW, maxQ }; } else { - Element stepW = createItem(cr, new String[] {"stepW", DEFAULT_STEP_W}); - Element stepQ = createItem(cr, new String[] {"stepQ", DEFAULT_STEP_Q}); + Element stepW = createItem( + cr, new String[] {"stepW", DEFAULT_STEP_W}); + Element stepQ = createItem( + cr, new String[] {"stepQ", DEFAULT_STEP_Q}); return new Element[] { stepW, stepQ }; } } @@ -139,6 +142,7 @@ } + @Override protected String getUIProvider() { return "wq_panel"; } @@ -305,7 +309,8 @@ return validateQ(artifact, context, from, to, step); } else { - throw new IllegalArgumentException("error_feed_invalid_wq_mode"); + throw new IllegalArgumentException( + "error_feed_invalid_wq_mode"); } } catch (NumberFormatException nfe) {