30e9bcd1970c38d7b6b3052c5262e662e2de70c8
[jalviewjs.git] / site / j2s / javax / swing / event / AncestorEvent.js
1 Clazz.declarePackage ("javax.swing.event");\r
2 Clazz.load (["java.awt.AWTEvent"], "javax.swing.event.AncestorEvent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.ancestor = null;\r
5 this.ancestorParent = null;\r
6 Clazz.instantialize (this, arguments);\r
7 }, javax.swing.event, "AncestorEvent", java.awt.AWTEvent);\r
8 Clazz.makeConstructor (c$, \r
9 function (source, id, ancestor, ancestorParent) {\r
10 Clazz.superConstructor (this, javax.swing.event.AncestorEvent, [source, id]);\r
11 this.ancestor = ancestor;\r
12 this.ancestorParent = ancestorParent;\r
13 }, "javax.swing.JComponent,~N,java.awt.Container,java.awt.Container");\r
14 Clazz.defineMethod (c$, "getAncestor", \r
15 function () {\r
16 return this.ancestor;\r
17 });\r
18 Clazz.defineMethod (c$, "getAncestorParent", \r
19 function () {\r
20 return this.ancestorParent;\r
21 });\r
22 Clazz.defineMethod (c$, "getComponent", \r
23 function () {\r
24 return this.getSource ();\r
25 });\r
26 Clazz.defineStatics (c$,\r
27 "ANCESTOR_ADDED", 1,\r
28 "ANCESTOR_REMOVED", 2,\r
29 "ANCESTOR_MOVED", 3);\r
30 });\r