01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.project;
16:
17: /**
18: * Represents a change on a IBlackboard.
19: *
20: * @author jones
21: * @since 1.1.0
22: */
23: public class BlackboardEvent {
24: private final IBlackboard source;
25: private final Object oldValue;
26: private final Object key;
27: private final Object newValue;
28:
29: public BlackboardEvent(IBlackboard source2, Object key2,
30: Object oldValue2, Object newValue2) {
31: this .source = source2;
32: this .oldValue = oldValue2;
33: this .key = key2;
34: this .newValue = newValue2;
35: }
36:
37: /**
38: * @return Returns the key.
39: */
40: public Object getKey() {
41: return this .key;
42: }
43:
44: /**
45: * @return Returns the newValue.
46: */
47: public Object getNewValue() {
48: return this .newValue;
49: }
50:
51: /**
52: * @return Returns the oldValue.
53: */
54: public Object getOldValue() {
55: return this .oldValue;
56: }
57:
58: /**
59: * @return Returns the source.
60: */
61: public IBlackboard getSource() {
62: return this.source;
63: }
64:
65: }
|