Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartPropertiesEditor.java @ 6534:480fb71ab73f
issue1370: In GWT chart property editor, suppres editing the "W [cm]" axis.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 03 Jul 2013 11:36:43 +0200 |
parents | ea9eef426962 |
children | fca46ce8e4f5 |
comparison
equal
deleted
inserted
replaced
6533:30c6da3bfc86 | 6534:480fb71ab73f |
---|---|
186 protected Canvas generatePropertyGroup(Property group, Property orig) { | 186 protected Canvas generatePropertyGroup(Property group, Property orig) { |
187 PropertyGroup pg = (PropertyGroup)group; | 187 PropertyGroup pg = (PropertyGroup)group; |
188 PropertyGroup origPg = (PropertyGroup)orig; | 188 PropertyGroup origPg = (PropertyGroup)orig; |
189 | 189 |
190 if (pg.getName().equals("axis")) { | 190 if (pg.getName().equals("axis")) { |
191 // Certain axis shall be skipped (W/Q-Diagrams cm-axis especially). | |
192 String outputName = tab.getOutputName(); | |
193 if (outputName.equals("fix_wq_curve") || outputName.equals("computed_discharge_curve") | |
194 || outputName.equals("extreme_wq_curve")) { | |
195 String labelString = ((StringProperty)origPg.getPropertyByName("label")).getValue(); | |
196 if(labelString.equals("W [cm]")) { | |
197 VLayout layout = new VLayout(); | |
198 layout.setHeight(0); | |
199 return layout; | |
200 } | |
201 } | |
191 Label scale = new Label(MSG.scale() + " :"); | 202 Label scale = new Label(MSG.scale() + " :"); |
192 scale.setHeight(25); | 203 scale.setHeight(25); |
193 scale.setMargin(2); | 204 scale.setMargin(2); |
194 | 205 |
195 DynamicForm form1 = new DynamicForm(); | 206 DynamicForm form1 = new DynamicForm(); |