Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/event/ParameterChangeEvent.java Wed Jul 06 13:06:04 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/event/ParameterChangeEvent.java Wed Jul 06 15:34:38 2011 +0000 @@ -10,14 +10,29 @@ */ public class ParameterChangeEvent { + public static enum Type { + FORWARD, BACK + } + + protected Artifact oldArtifact; protected Artifact newArtifact; + protected Type type; + + public ParameterChangeEvent(Artifact old, Artifact newArt) { - oldArtifact = old; - newArtifact = newArt; + this(old, newArt, Type.FORWARD); } + + public ParameterChangeEvent(Artifact oArt, Artifact nArt, Type type) { + oldArtifact = oArt; + newArtifact = nArt; + this.type = type; + } + + public Artifact getOldValue() { return oldArtifact; } @@ -25,5 +40,9 @@ public Artifact getNewValue() { return newArtifact; } + + public Type getType() { + return type; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :