Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/sessionmodel/DiagrammOptions.java @ 690:254f062e334b
Added JavaDoc.
gnv/trunk@908 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 12 Apr 2010 16:45:16 +0000 |
parents | 57fa8019fbdc |
children | af22fa5567a6 |
comparison
equal
deleted
inserted
replaced
689:8487581dfe3b | 690:254f062e334b |
---|---|
2 | 2 |
3 import java.util.HashMap; | 3 import java.util.HashMap; |
4 import java.util.Map; | 4 import java.util.Map; |
5 | 5 |
6 /** | 6 /** |
7 * Stores key-value pairs used to save user input for changing diagram | |
8 * attributes. | |
9 * | |
7 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | 10 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
8 * | |
9 */ | 11 */ |
10 public class DiagrammOptions { | 12 public class DiagrammOptions { |
11 | 13 |
12 private Map<String, String> values = new HashMap<String, String>(); | 14 private Map<String, String> values = new HashMap<String, String>(); |
13 | 15 |
17 public DiagrammOptions() { | 19 public DiagrammOptions() { |
18 super(); | 20 super(); |
19 } | 21 } |
20 | 22 |
21 /** | 23 /** |
22 * @return | 24 * @return the value. |
23 */ | 25 */ |
24 public String getValue(String key) { | 26 public String getValue(String key) { |
25 return this.values.get(key); | 27 return this.values.get(key); |
26 } | 28 } |
27 | 29 |
30 | |
28 /** | 31 /** |
29 * @param width | 32 * Set a value with the given key. |
33 * | |
34 * @param key The given key. | |
35 * @param value The value to be stored. | |
30 */ | 36 */ |
31 public void setValue(String key, String value) { | 37 public void setValue(String key, String value) { |
32 this.values.put(key, value); | 38 this.values.put(key, value); |
33 } | 39 } |
34 | |
35 } | 40 } |
41 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |