1 Clazz.declarePackage ("java.awt.event");
\r
2 Clazz.load (["java.awt.event.ComponentEvent"], "java.awt.event.ContainerEvent", ["java.awt.Container"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, java.awt.event, "ContainerEvent", java.awt.event.ComponentEvent);
\r
7 Clazz.makeConstructor (c$,
\r
8 function (source, id, child) {
\r
9 Clazz.superConstructor (this, java.awt.event.ContainerEvent, [source, id]);
\r
11 }, "java.awt.Component,~N,java.awt.Component");
\r
12 Clazz.defineMethod (c$, "getContainer",
\r
14 return (Clazz.instanceOf (this.source, java.awt.Container)) ? this.source : null;
\r
16 Clazz.defineMethod (c$, "getChild",
\r
20 Clazz.overrideMethod (c$, "paramString",
\r
25 typeStr = "COMPONENT_ADDED";
\r
28 typeStr = "COMPONENT_REMOVED";
\r
31 typeStr = "unknown type";
\r
33 return typeStr + ",child=" + this.child.getName ();
\r
35 Clazz.defineStatics (c$,
\r
36 "CONTAINER_FIRST", 300,
\r
37 "CONTAINER_LAST", 301,
\r
38 "COMPONENT_ADDED", 300,
\r
39 "COMPONENT_REMOVED", 301);
\r