1 Clazz.declarePackage ("java.awt.event");
2 Clazz.load (["java.awt.event.ComponentEvent"], "java.awt.event.WindowEvent", ["java.awt.Window", "jssun.awt.AppContext", "$.SunToolkit"], function () {
3 c$ = Clazz.decorateAsClass (function () {
7 Clazz.instantialize (this, arguments);
8 }, java.awt.event, "WindowEvent", java.awt.event.ComponentEvent);
9 Clazz.makeConstructor (c$,
10 function (source, id, opposite, oldState, newState) {
11 Clazz.superConstructor (this, java.awt.event.WindowEvent, [source, id]);
12 this.opposite = opposite;
13 this.oldState = oldState;
14 this.newState = newState;
15 }, "java.awt.Window,~N,java.awt.Window,~N,~N");
16 Clazz.makeConstructor (c$,
17 function (source, id, opposite) {
18 this.construct (source, id, opposite, 0, 0);
19 }, "java.awt.Window,~N,java.awt.Window");
20 Clazz.makeConstructor (c$,
21 function (source, id, oldState, newState) {
22 this.construct (source, id, null, oldState, newState);
23 }, "java.awt.Window,~N,~N,~N");
24 Clazz.makeConstructor (c$,
25 function (source, id) {
26 this.construct (source, id, null, 0, 0);
27 }, "java.awt.Window,~N");
28 Clazz.defineMethod (c$, "getWindow",
30 return (Clazz.instanceOf (this.source, java.awt.Window)) ? this.source : null;
32 Clazz.defineMethod (c$, "getOppositeWindow",
34 if (this.opposite == null) {
36 }return (jssun.awt.SunToolkit.targetToAppContext (this.opposite) === jssun.awt.AppContext.getAppContext ()) ? this.opposite : null;
38 Clazz.defineMethod (c$, "getOldState",
42 Clazz.defineMethod (c$, "getNewState",
46 Clazz.overrideMethod (c$, "paramString",
51 typeStr = "WINDOW_OPENED";
54 typeStr = "WINDOW_CLOSING";
57 typeStr = "WINDOW_CLOSED";
60 typeStr = "WINDOW_ICONIFIED";
63 typeStr = "WINDOW_DEICONIFIED";
66 typeStr = "WINDOW_ACTIVATED";
69 typeStr = "WINDOW_DEACTIVATED";
72 typeStr = "WINDOW_GAINED_FOCUS";
75 typeStr = "WINDOW_LOST_FOCUS";
78 typeStr = "WINDOW_STATE_CHANGED";
81 typeStr = "unknown type";
83 typeStr += ",opposite=" + this.getOppositeWindow () + ",oldState=" + this.oldState + ",newState=" + this.newState;
86 Clazz.defineStatics (c$,
89 "WINDOW_CLOSING", 201,
91 "WINDOW_ICONIFIED", 203,
92 "WINDOW_DEICONIFIED", 204,
93 "WINDOW_ACTIVATED", 205,
94 "WINDOW_DEACTIVATED", 206,
95 "WINDOW_GAINED_FOCUS", 207,
96 "WINDOW_LOST_FOCUS", 208,
97 "WINDOW_STATE_CHANGED", 209,