JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / java / beans / PropertyChangeEvent.js
1 Clazz.declarePackage ("java.beans");\r
2 Clazz.load (["java.util.EventObject"], "java.beans.PropertyChangeEvent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.propertyName = null;\r
5 this.newValue = null;\r
6 this.oldValue = null;\r
7 this.propagationId = null;\r
8 Clazz.instantialize (this, arguments);\r
9 }, java.beans, "PropertyChangeEvent", java.util.EventObject);\r
10 Clazz.makeConstructor (c$, \r
11 function (source, propertyName, oldValue, newValue) {\r
12 Clazz.superConstructor (this, java.beans.PropertyChangeEvent, [source]);\r
13 this.propertyName = propertyName;\r
14 this.newValue = newValue;\r
15 this.oldValue = oldValue;\r
16 }, "~O,~S,~O,~O");\r
17 Clazz.defineMethod (c$, "getPropertyName", \r
18 function () {\r
19 return this.propertyName;\r
20 });\r
21 Clazz.defineMethod (c$, "getNewValue", \r
22 function () {\r
23 return this.newValue;\r
24 });\r
25 Clazz.defineMethod (c$, "getOldValue", \r
26 function () {\r
27 return this.oldValue;\r
28 });\r
29 Clazz.defineMethod (c$, "setPropagationId", \r
30 function (propagationId) {\r
31 this.propagationId = propagationId;\r
32 }, "~O");\r
33 Clazz.defineMethod (c$, "getPropagationId", \r
34 function () {\r
35 return this.propagationId;\r
36 });\r
37 });\r