comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ScenarioSelect.java @ 5312:2c1045a1e3fe

Added new states and transitions to UESK calculation and adjusted states and UI. TODO: Some refactoring and code cleanup.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 14 Mar 2013 17:25:00 +0100
parents 442fbb290fa8
children
comparison
equal deleted inserted replaced
5311:ff9dfc58d0cb 5312:2c1045a1e3fe
24 /** The logger that is used in this class.*/ 24 /** The logger that is used in this class.*/
25 private static Logger logger = Logger.getLogger(ScenarioSelect.class); 25 private static Logger logger = Logger.getLogger(ScenarioSelect.class);
26 26
27 27
28 public static final String FIELD_MODE = "scenario"; 28 public static final String FIELD_MODE = "scenario";
29 public static final String FIELD_BARRIERS = "uesk.barriers";
30 29
31 public static final String SCENARIO_CURRENT = "scenario.current"; 30 public static final String SCENARIO_CURRENT = "scenario.current";
32 public static final String SCENARIO_POTENTIEL = "scenario.potentiel"; 31 public static final String SCENARIO_POTENTIEL = "scenario.potentiel";
33 public static final String SCENARIO_SCENRAIO = "scenario.scenario"; 32 public static final String SCENARIO_SCENRAIO = "scenario.scenario";
34 33
36 SCENARIO_CURRENT, 35 SCENARIO_CURRENT,
37 SCENARIO_POTENTIEL, 36 SCENARIO_POTENTIEL,
38 SCENARIO_SCENRAIO }; 37 SCENARIO_SCENRAIO };
39 38
40 39
41
42 @Override 40 @Override
43 protected String getUIProvider() { 41 protected String getUIProvider() {
44 return "map_digitize"; 42 return "";
45 } 43 }
46
47
48 @Override
49 protected void appendStaticData(
50 FLYSArtifact flys,
51 CallContext cc,
52 ElementCreator creator,
53 Element ui,
54 String name
55 ) {
56 if (name != null && name.equals(FIELD_BARRIERS)) {
57 return;
58 }
59 else {
60 super.appendStaticData(flys, cc, creator, ui, name);
61 }
62 }
63
64 44
65 @Override 45 @Override
66 protected Element[] createItems( 46 protected Element[] createItems(
67 XMLUtils.ElementCreator cr, 47 XMLUtils.ElementCreator cr,
68 Artifact artifact, 48 Artifact artifact,

http://dive4elements.wald.intevation.org