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
16 return this.ancestor;
\r
18 Clazz.defineMethod (c$, "getAncestorParent",
\r
20 return this.ancestorParent;
\r
22 Clazz.defineMethod (c$, "getComponent",
\r
24 return this.getSource ();
\r
26 Clazz.defineStatics (c$,
\r
27 "ANCESTOR_ADDED", 1,
\r
28 "ANCESTOR_REMOVED", 2,
\r
29 "ANCESTOR_MOVED", 3);
\r