comparison flys-client/src/main/java/de/intevation/flys/client/client/event/ParameterChangeEvent.java @ 33:e29658e2623a

Added a listener mechanism to notify listeners when the parameterization of a Collection/Artifact changed. flys-client/trunk@1453 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 Mar 2011 13:38:46 +0000
parents
children 3fa8583434b2
comparison
equal deleted inserted replaced
32:88c530c25968 33:e29658e2623a
1 package de.intevation.flys.client.client.event;
2
3 import de.intevation.flys.client.shared.model.Artifact;
4
5
6 /**
7 * This events stores references to the old artifact and the new one.
8 *
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
10 */
11 public class ParameterChangeEvent {
12
13 protected Artifact oldArtifact;
14 protected Artifact newArtifact;
15
16 public ParameterChangeEvent(Artifact old, Artifact newArt) {
17 oldArtifact = old;
18 newArtifact = newArt;
19 }
20
21 public Artifact getOldValue() {
22 return oldArtifact;
23 }
24
25 public Artifact getNewValue() {
26 return newArtifact;
27 }
28 }
29 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org