Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/DefaultKeyValueDescribeData.java @ 82:5eb62df21f9a
Added Support for Vertical Profiles Marnet, STAUN, IMIS
gnv-artifacts/trunk@111 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 22 Sep 2009 13:20:30 +0000 |
parents | e33c61735a4e |
children | 7fb9441dd8af |
rev | line source |
---|---|
67
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1 /** |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
2 * |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
3 */ |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
4 package de.intevation.gnv.transition.describedata; |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
5 /** |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
6 * @author Tim Englich <tim.englich@intevation.de> |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
7 * |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
8 */ |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 public class DefaultKeyValueDescribeData implements KeyValueDescibeData { |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 |
77
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
67
diff
changeset
|
11 /** |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
67
diff
changeset
|
12 * |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
67
diff
changeset
|
13 */ |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
67
diff
changeset
|
14 private static final long serialVersionUID = -924469415242703108L; |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
67
diff
changeset
|
15 |
82
5eb62df21f9a
Added Support for Vertical Profiles Marnet, STAUN, IMIS
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
16 private String key; |
67
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
17 |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
18 private String value = null; |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
19 |
79
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
20 private boolean selected = false; |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
21 |
82
5eb62df21f9a
Added Support for Vertical Profiles Marnet, STAUN, IMIS
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
22 public DefaultKeyValueDescribeData(String key, String value) { |
67
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
23 super(); |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
24 this.key = key; |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
25 this.value = value; |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
26 } |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
27 |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
28 /** |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
29 * @see de.intevation.gnv.transition.describedata.KeyValueDescibeData#getKey() |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
30 */ |
82
5eb62df21f9a
Added Support for Vertical Profiles Marnet, STAUN, IMIS
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
31 public String getKey() { |
67
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
32 return this.key; |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
33 } |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
34 |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
35 /** |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
36 * @see de.intevation.gnv.transition.describedata.KeyValueDescibeData#getValue() |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
37 */ |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
38 public String getValue() { |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
39 return this.value; |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
40 } |
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
41 |
79
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
42 /** |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
43 * @see de.intevation.gnv.transition.describedata.KeyValueDescibeData#isSelected() |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
44 */ |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
45 public boolean isSelected() { |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
46 return this.selected; |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
47 } |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
48 |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
49 /** |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
50 * @see de.intevation.gnv.transition.describedata.KeyValueDescibeData#setSelected(boolean) |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
51 */ |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
52 public void setSelected(boolean selected) { |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
53 this.selected = selected; |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
54 } |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
55 |
67
0e9762ebd18d
Refactor ChartFactory so that it is able to be compiled without errors.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
56 } |