Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/MultiStringArrayState.java @ 3722:c91e7db0fd4b
Set data for characteristic diameter for use in parameter matrix UI.
flys-artifacts/trunk@5382 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 07 Sep 2012 12:03:48 +0000 |
parents | 4bd3d8bbb60c |
children |
comparison
equal
deleted
inserted
replaced
3721:1cfe788325d5 | 3722:c91e7db0fd4b |
---|---|
33 Element select | 33 Element select |
34 ) { | 34 ) { |
35 try { | 35 try { |
36 creator.addAttr(select, "type", "options", true); | 36 creator.addAttr(select, "type", "options", true); |
37 | 37 |
38 for (KVP kvp: getOptions(artifact, name)) { | 38 for (KVP kvp: getOptions(artifact, name, context)) { |
39 Element item = creator.create("item"); | 39 Element item = creator.create("item"); |
40 creator.addAttr(item, "label", kvp.getValue().toString(), true); | 40 creator.addAttr(item, "label", kvp.getValue().toString(), true); |
41 creator.addAttr(item, "value", kvp.getKey().toString(), true); | 41 creator.addAttr(item, "value", kvp.getKey().toString(), true); |
42 | 42 |
43 select.appendChild(item); | 43 select.appendChild(item); |
78 } | 78 } |
79 | 79 |
80 | 80 |
81 protected abstract KVP<String, String>[] getOptions( | 81 protected abstract KVP<String, String>[] getOptions( |
82 Artifact artifact, | 82 Artifact artifact, |
83 String parameterName | 83 String parameterName, |
84 CallContext context | |
84 ) | 85 ) |
85 throws IllegalArgumentException; | 86 throws IllegalArgumentException; |
86 | 87 |
87 | 88 |
88 protected abstract String getLabelFor( | 89 protected abstract String getLabelFor( |