Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/DoOutputAction.java @ 575:a634d5ee961d
Added checkboxes for selecting the field which is used to adjust the number of bins in histogram charts.
gnv/trunk@707 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 24 Feb 2010 14:38:36 +0000 |
parents | df78178e1180 |
children | 2f3d885fed09 |
comparison
equal
deleted
inserted
replaced
574:800874dc0b29 | 575:a634d5ee961d |
---|---|
73 if (outputMode != null && outputMode.getMimeType().equals(mimeType)) { | 73 if (outputMode != null && outputMode.getMimeType().equals(mimeType)) { |
74 Collection<OutputParameter> inputParameter = outputMode | 74 Collection<OutputParameter> inputParameter = outputMode |
75 .getOutputParameters(); | 75 .getOutputParameters(); |
76 Collection<InputParameter> ips = null; | 76 Collection<InputParameter> ips = null; |
77 if (inputParameter != null) { | 77 if (inputParameter != null) { |
78 ips = new ArrayList<InputParameter>(inputParameter.size()); | 78 ips = new ArrayList<InputParameter>(inputParameter.size()+1); |
79 Iterator<OutputParameter> it = inputParameter.iterator(); | 79 Iterator<OutputParameter> it = inputParameter.iterator(); |
80 while (it.hasNext()) { | 80 while (it.hasNext()) { |
81 String name = it.next().getName(); | 81 String name = it.next().getName(); |
82 String[] values = request.getParameterValues(name); | 82 String[] values = request.getParameterValues(name); |
83 InputParameter ip = new DefaultInputParameter(name, | 83 InputParameter ip = new DefaultInputParameter(name, |
84 values); | 84 values); |
85 ips.add(ip); | |
86 } | |
87 | |
88 if (request.getParameter("bintype") != null) { | |
89 InputParameter ip = new DefaultInputParameter( | |
90 "bintype", request.getParameterValues("bintype")); | |
85 ips.add(ip); | 91 ips.add(ip); |
86 } | 92 } |
87 } | 93 } |
88 | 94 |
89 ArtifactDatabaseClient adc = ArtifactDatabaseClientFactory | 95 ArtifactDatabaseClient adc = ArtifactDatabaseClientFactory |