Mercurial > dive4elements > river
annotate flys-client/src/main/java/de/intevation/flys/client/shared/model/GaugeImpl.java @ 4692:f2578acc60d7
Rename filter into filterpanel
Differenciate between the current filter string and the filterpanel
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 17 Dec 2012 16:14:27 +0100 |
parents | ca40a5b1bb04 |
children |
rev | line source |
---|---|
2465
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.client.shared.model; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
3 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
4 public class GaugeImpl implements Gauge { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
5 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
6 private String name; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 private double lower; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 private double upper; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 public GaugeImpl() { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 public GaugeImpl(String name, double lower, double upper) { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 this.name = name; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 this.lower = lower; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
19 this.upper = upper; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
21 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 public void setName(String name) { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
24 this.name = name; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
25 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
26 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
28 public String getName() { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
29 return name; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
30 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
31 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
32 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
33 public void setLower(double lower) { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
34 this.lower = lower; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
35 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
36 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
37 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
38 public double getLower() { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
39 return lower; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
40 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
41 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
42 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
43 public void setUpper(double upper) { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
44 this.upper = upper; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
45 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
46 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
47 |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
48 public double getUpper() { |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
49 return upper; |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
50 } |
ca40a5b1bb04
Added new model classes for gauges.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
51 } |