Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixGaugeSelectPanel.java @ 2914:7d69e570e79b
FixA: Set discharge sectors 0 and 3 as default in UI.
flys-client/trunk@4736 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 21 Jun 2012 09:12:53 +0000 |
parents | 93302bd16f42 |
children | 00fd2bd71ac9 |
comparison
equal
deleted
inserted
replaced
2913:6d96443ed6e6 | 2914:7d69e570e79b |
---|---|
44 protected LinkedHashMap mapValues; | 44 protected LinkedHashMap mapValues; |
45 | 45 |
46 public FixGaugeSelectPanel() { | 46 public FixGaugeSelectPanel() { |
47 htmlOverview = ""; | 47 htmlOverview = ""; |
48 mapValues = new LinkedHashMap(); | 48 mapValues = new LinkedHashMap(); |
49 mapValues.put("0", "[0, (MNQ + MQ)/2)"); | 49 mapValues.put("0", "[0, (MNQ+MQ)/2)"); |
50 mapValues.put("1", "[(MNQ + MQ)/2, (MQ + MHQ)/2)"); | 50 mapValues.put("1", "[(MNQ+MQ)/2, (MQ+MHQ)/2)"); |
51 mapValues.put("2", "[(MQ + MHQ)/2, HQ5)"); | 51 mapValues.put("2", "[(MQ+MHQ)/2, HQ5)"); |
52 mapValues.put("3", "[HQ5, \u221e)"); | 52 mapValues.put("3", "[HQ5, \u221e)"); |
53 | |
54 | |
55 } | 53 } |
56 | 54 |
57 public Canvas createWidget(DataList data) { | 55 public Canvas createWidget(DataList data) { |
58 instances.put(this.artifact.getUuid(), this); | 56 instances.put(this.artifact.getUuid(), this); |
59 | 57 |
66 to = new SelectItem(MESSAGES.to()); | 64 to = new SelectItem(MESSAGES.to()); |
67 | 65 |
68 from.setShowTitle(false); | 66 from.setShowTitle(false); |
69 to.setShowTitle(false); | 67 to.setShowTitle(false); |
70 from.setValueMap(mapValues); | 68 from.setValueMap(mapValues); |
71 from.setWidth(60); | 69 from.setDefaultValues("0"); |
70 from.setWidth(160); | |
72 to.setValueMap(mapValues); | 71 to.setValueMap(mapValues); |
73 to.setWidth(60); | 72 to.setDefaultValues("3"); |
73 to.setWidth(160); | |
74 | 74 |
75 DynamicForm form = new DynamicForm(); | 75 DynamicForm form = new DynamicForm(); |
76 StaticTextItem separator = new StaticTextItem("separator"); | 76 StaticTextItem separator = new StaticTextItem("separator"); |
77 separator.setShowTitle(false); | 77 separator.setShowTitle(false); |
78 separator.setValue(MESSAGES.to()); | 78 separator.setValue(MESSAGES.to()); |