1 Clazz.declarePackage ("java.awt.event");
\r
2 Clazz.load (["java.awt.AWTEvent"], "java.awt.event.ComponentEvent", ["java.awt.Component"], function () {
\r
3 c$ = Clazz.declareType (java.awt.event, "ComponentEvent", java.awt.AWTEvent);
\r
4 Clazz.defineMethod (c$, "getComponent",
\r
6 return (Clazz.instanceOf (this.source, java.awt.Component)) ? this.source : null;
\r
8 Clazz.overrideMethod (c$, "paramString",
\r
11 var b = (this.source != null ? (this.source).getBounds () : null);
\r
14 typeStr = "COMPONENT_SHOWN";
\r
17 typeStr = "COMPONENT_HIDDEN";
\r
20 typeStr = "COMPONENT_MOVED (" + b.x + "," + b.y + " " + b.width + "x" + b.height + ")";
\r
23 typeStr = "COMPONENT_RESIZED (" + b.x + "," + b.y + " " + b.width + "x" + b.height + ")";
\r
26 typeStr = "unknown type";
\r
30 Clazz.defineStatics (c$,
\r
31 "COMPONENT_FIRST", 100,
\r
32 "COMPONENT_LAST", 103,
\r
33 "COMPONENT_MOVED", 100,
\r
34 "COMPONENT_RESIZED", 101,
\r
35 "COMPONENT_SHOWN", 102,
\r
36 "COMPONENT_HIDDEN", 103);
\r