comparison gnv/src/main/java/de/intevation/gnv/action/sessionmodel/DiagrammOptions.java @ 30:07e9c137a2f1

Added dynamic Outputparameter Support and Outputparameter-manipulation gnv/trunk@134 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 25 Sep 2009 14:24:08 +0000
parents bba8fd97e549
children ad381cc47217
comparison
equal deleted inserted replaced
29:bba8fd97e549 30:07e9c137a2f1
1 /** 1 /**
2 * 2 *
3 */ 3 */
4 package de.intevation.gnv.action.sessionmodel; 4 package de.intevation.gnv.action.sessionmodel;
5
6 import java.util.HashMap;
7 import java.util.Map;
8
5 /** 9 /**
6 * @author Tim Englich <tim.englich@intevation.de> 10 * @author Tim Englich <tim.englich@intevation.de>
7 * 11 *
8 */ 12 */
9 public class DiagrammOptions { 13 public class DiagrammOptions {
10 14
11 15
12 public enum mode{ 16 private Map<String, String> values = new HashMap<String, String>();
13 Standard,
14 User_Specific
15 }
16
17 private mode modus = mode.Standard;
18
19 private int width = 500;
20 /** 17 /**
21 * Constructor 18 * Constructor
22 */ 19 */
23 public DiagrammOptions() { 20 public DiagrammOptions() {
24 super(); 21 super();
25 } 22 }
26 23
24
27 /** 25 /**
28 * @return 26 * @return
29 */ 27 */
30 public mode getModus() { 28 public String getValue(String key) {
31 return modus; 29 return this.values.get(key);
32 }
33
34 /**
35 * @param modus
36 */
37 public void setModus(mode modus) {
38 this.modus = modus;
39 }
40
41 /**
42 * @return
43 */
44 public int getWidth() {
45 return width;
46 } 30 }
47 31
48 /** 32 /**
49 * @param width 33 * @param width
50 */ 34 */
51 public void setWidth(int width) { 35 public void setValue(String key, String value) {
52 this.width = width; 36 this.values.put(key, value);
53 } 37 }
54 38
55 } 39 }

http://dive4elements.wald.intevation.org