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