1 Clazz.declarePackage ("java.awt.event");
\r
2 Clazz.load (["java.awt.event.ComponentEvent"], "java.awt.event.FocusEvent", ["jssun.awt.AppContext", "$.SunToolkit"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.temporary = false;
\r
5 this.opposite = null;
\r
6 Clazz.instantialize (this, arguments);
\r
7 }, java.awt.event, "FocusEvent", java.awt.event.ComponentEvent);
\r
8 Clazz.makeConstructor (c$,
\r
9 function (source, id, temporary, opposite) {
\r
10 Clazz.superConstructor (this, java.awt.event.FocusEvent, [source, id]);
\r
11 this.temporary = temporary;
\r
12 this.opposite = opposite;
\r
13 }, "java.awt.Component,~N,~B,java.awt.Component");
\r
14 Clazz.makeConstructor (c$,
\r
15 function (source, id, temporary) {
\r
16 this.construct (source, id, temporary, null);
\r
17 }, "java.awt.Component,~N,~B");
\r
18 Clazz.makeConstructor (c$,
\r
19 function (source, id) {
\r
20 this.construct (source, id, false);
\r
21 }, "java.awt.Component,~N");
\r
22 Clazz.defineMethod (c$, "isTemporary",
\r
24 return this.temporary;
\r
26 Clazz.defineMethod (c$, "getOppositeComponent",
\r
28 if (this.opposite == null) {
\r
30 }return (jssun.awt.SunToolkit.targetToAppContext (this.opposite) === jssun.awt.AppContext.getAppContext ()) ? this.opposite : null;
\r
32 Clazz.overrideMethod (c$, "paramString",
\r
37 typeStr = "FOCUS_GAINED";
\r
40 typeStr = "FOCUS_LOST";
\r
43 typeStr = "unknown type";
\r
45 return typeStr + (this.temporary ? ",temporary" : ",permanent") + ",opposite=" + this.getOppositeComponent ();
\r
47 Clazz.defineStatics (c$,
\r
48 "FOCUS_FIRST", 1004,
\r
50 "FOCUS_GAINED", 1004,
\r
51 "FOCUS_LOST", 1005);
\r