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