Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/DefaultInputValue.java @ 78:969faa37a11b
Added Multiselectsupport for InputValues
gnv-artifacts/trunk@94 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Wed, 16 Sep 2009 12:38:24 +0000 |
parents | 737d8bf63701 |
children | 9b41f3688610 |
comparison
equal
deleted
inserted
replaced
77:0e38f512f7e4 | 78:969faa37a11b |
---|---|
6 * @author Tim Englich <tim.englich@intevation.de> | 6 * @author Tim Englich <tim.englich@intevation.de> |
7 * | 7 * |
8 */ | 8 */ |
9 public class DefaultInputValue implements InputValue { | 9 public class DefaultInputValue implements InputValue { |
10 | 10 |
11 /** | |
12 * The UID of this Class. | |
13 */ | |
14 private static final long serialVersionUID = -8518824299166180986L; | |
11 private String name = null; | 15 private String name = null; |
12 private String type = null; | 16 private String type = null; |
17 private boolean multiselect = false; | |
13 | 18 |
14 | 19 |
15 /** | 20 /** |
16 * Constructor | 21 * Constructor |
17 */ | 22 */ |
18 public DefaultInputValue(String name, String type){ | 23 public DefaultInputValue(String name, String type, boolean multiselect){ |
19 this.name = name; | 24 this.name = name; |
20 this.type = type; | 25 this.type = type; |
26 this.multiselect = multiselect; | |
21 } | 27 } |
22 | 28 |
23 /** | 29 /** |
24 * @see de.intevation.gnv.transition.InputValue#getName() | 30 * @see de.intevation.gnv.transition.InputValue#getName() |
25 */ | 31 */ |
37 /** | 43 /** |
38 * @see java.lang.Object#toString() | 44 * @see java.lang.Object#toString() |
39 */ | 45 */ |
40 @Override | 46 @Override |
41 public String toString() { | 47 public String toString() { |
42 return "InputValue "+name+" ==> "+type; | 48 return "InputValue "+this.name+" ==> "+this.type+ "==> multiselect: "+this.multiselect; |
49 } | |
50 | |
51 /** | |
52 * @see de.intevation.gnv.transition.InputValue#isMultiselect() | |
53 */ | |
54 public boolean isMultiselect() { | |
55 return this.multiselect; | |
43 } | 56 } |
44 | 57 |
45 } | 58 } |