Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/LoadScenarioSelect.java @ 9511:73819a194bfd
Wrong/not translated column
author | gernotbelger |
---|---|
date | Fri, 28 Sep 2018 18:12:11 +0200 |
parents | 787fc085459b |
children | ba0561906f81 |
comparison
equal
deleted
inserted
replaced
9507:a7f75d61a634 | 9511:73819a194bfd |
---|---|
9 package org.dive4elements.river.artifacts.uinfo.inundationduration; | 9 package org.dive4elements.river.artifacts.uinfo.inundationduration; |
10 | 10 |
11 import java.util.HashMap; | 11 import java.util.HashMap; |
12 import java.util.Map; | 12 import java.util.Map; |
13 | 13 |
14 import org.apache.log4j.Logger; | |
15 import org.dive4elements.artifactdatabase.data.StateData; | 14 import org.dive4elements.artifactdatabase.data.StateData; |
16 import org.dive4elements.artifacts.Artifact; | 15 import org.dive4elements.artifacts.Artifact; |
17 import org.dive4elements.artifacts.CallContext; | 16 import org.dive4elements.artifacts.CallContext; |
18 import org.dive4elements.artifacts.common.utils.XMLUtils; | 17 import org.dive4elements.artifacts.common.utils.XMLUtils; |
19 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator; | 18 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator; |
22 import org.dive4elements.river.artifacts.uinfo.salix.ScenarioTypeState; | 21 import org.dive4elements.river.artifacts.uinfo.salix.ScenarioTypeState; |
23 import org.w3c.dom.Element; | 22 import org.w3c.dom.Element; |
24 | 23 |
25 /** State in which to fetch years for sedminent load calculation. */ | 24 /** State in which to fetch years for sedminent load calculation. */ |
26 public class LoadScenarioSelect extends DefaultState { | 25 public class LoadScenarioSelect extends DefaultState { |
26 | |
27 private static final long serialVersionUID = 1L; | 27 private static final long serialVersionUID = 1L; |
28 /** The log used in this class. */ | |
29 private static Logger log = Logger.getLogger(LoadScenarioSelect.class); | |
30 | 28 |
31 /** | 29 /** |
32 * The default constructor that initializes an empty State object. | 30 * The default constructor that initializes an empty State object. |
33 */ | 31 */ |
34 public LoadScenarioSelect() { | 32 public LoadScenarioSelect() { |
47 if (datakey.equals(name)) { | 45 if (datakey.equals(name)) { |
48 | 46 |
49 final AddTableDataHelper helper = new AddTableDataHelper(creator, select, "cm", context.getMeta()); | 47 final AddTableDataHelper helper = new AddTableDataHelper(creator, select, "cm", context.getMeta()); |
50 | 48 |
51 helper.addColumn(0, "pinfrom", "60", "common.client.ui.selection", "ICON", "CENTER", "from"); | 49 helper.addColumn(0, "pinfrom", "60", "common.client.ui.selection", "ICON", "CENTER", "from"); |
52 helper.addColumn(1, "cm", "60", "Delta [cm]", "INTEGER", "RIGHT", null); | 50 helper.addColumn(1, "cm", "60", "uinfo_select_delta_w_column", "INTEGER", "RIGHT", null); |
53 | 51 |
54 for (int i = -200; i < 210; i = i + 10) { | 52 for (int i = -200; i < 210; i = i + 10) { |
55 final Map<String, String> row = new HashMap<>(); | 53 final Map<String, String> row = new HashMap<>(); |
56 row.put("cm", Integer.toString(i)); | 54 row.put("cm", Integer.toString(i)); |
57 helper.addRow(row); | 55 helper.addRow(row); |