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