Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/event/ParameterChangeEvent.java @ 790:3fa8583434b2
Made stepping forward/backword much smoother in the parameter list.
flys-client/trunk@2294 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 06 Jul 2011 15:34:38 +0000 |
parents | e29658e2623a |
children |
comparison
equal
deleted
inserted
replaced
789:e8be9a188e64 | 790:3fa8583434b2 |
---|---|
8 * | 8 * |
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
10 */ | 10 */ |
11 public class ParameterChangeEvent { | 11 public class ParameterChangeEvent { |
12 | 12 |
13 public static enum Type { | |
14 FORWARD, BACK | |
15 } | |
16 | |
17 | |
13 protected Artifact oldArtifact; | 18 protected Artifact oldArtifact; |
14 protected Artifact newArtifact; | 19 protected Artifact newArtifact; |
15 | 20 |
21 protected Type type; | |
22 | |
23 | |
16 public ParameterChangeEvent(Artifact old, Artifact newArt) { | 24 public ParameterChangeEvent(Artifact old, Artifact newArt) { |
17 oldArtifact = old; | 25 this(old, newArt, Type.FORWARD); |
18 newArtifact = newArt; | |
19 } | 26 } |
27 | |
28 | |
29 public ParameterChangeEvent(Artifact oArt, Artifact nArt, Type type) { | |
30 oldArtifact = oArt; | |
31 newArtifact = nArt; | |
32 this.type = type; | |
33 } | |
34 | |
20 | 35 |
21 public Artifact getOldValue() { | 36 public Artifact getOldValue() { |
22 return oldArtifact; | 37 return oldArtifact; |
23 } | 38 } |
24 | 39 |
25 public Artifact getNewValue() { | 40 public Artifact getNewValue() { |
26 return newArtifact; | 41 return newArtifact; |
27 } | 42 } |
43 | |
44 public Type getType() { | |
45 return type; | |
46 } | |
28 } | 47 } |
29 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 48 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |