X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjava%2Fawt%2Fevent%2FFocusEvent.js;h=b709f91ef8094dc72d33bb2844e7e568f95f262b;hp=d9444ecc335446f1b2cc562859bf603ea9448ff8;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/java/awt/event/FocusEvent.js b/site/j2s/java/awt/event/FocusEvent.js index d9444ec..b709f91 100644 --- a/site/j2s/java/awt/event/FocusEvent.js +++ b/site/j2s/java/awt/event/FocusEvent.js @@ -1,52 +1,52 @@ -Clazz.declarePackage ("java.awt.event"); -Clazz.load (["java.awt.event.ComponentEvent"], "java.awt.event.FocusEvent", ["jssun.awt.AppContext", "$.SunToolkit"], function () { -c$ = Clazz.decorateAsClass (function () { -this.temporary = false; -this.opposite = null; -Clazz.instantialize (this, arguments); -}, java.awt.event, "FocusEvent", java.awt.event.ComponentEvent); -Clazz.makeConstructor (c$, -function (source, id, temporary, opposite) { -Clazz.superConstructor (this, java.awt.event.FocusEvent, [source, id]); -this.temporary = temporary; -this.opposite = opposite; -}, "java.awt.Component,~N,~B,java.awt.Component"); -Clazz.makeConstructor (c$, -function (source, id, temporary) { -this.construct (source, id, temporary, null); -}, "java.awt.Component,~N,~B"); -Clazz.makeConstructor (c$, -function (source, id) { -this.construct (source, id, false); -}, "java.awt.Component,~N"); -Clazz.defineMethod (c$, "isTemporary", -function () { -return this.temporary; -}); -Clazz.defineMethod (c$, "getOppositeComponent", -function () { -if (this.opposite == null) { -return null; -}return (jssun.awt.SunToolkit.targetToAppContext (this.opposite) === jssun.awt.AppContext.getAppContext ()) ? this.opposite : null; -}); -Clazz.overrideMethod (c$, "paramString", -function () { -var typeStr; -switch (this.id) { -case 1004: -typeStr = "FOCUS_GAINED"; -break; -case 1005: -typeStr = "FOCUS_LOST"; -break; -default: -typeStr = "unknown type"; -} -return typeStr + (this.temporary ? ",temporary" : ",permanent") + ",opposite=" + this.getOppositeComponent (); -}); -Clazz.defineStatics (c$, -"FOCUS_FIRST", 1004, -"FOCUS_LAST", 1005, -"FOCUS_GAINED", 1004, -"FOCUS_LOST", 1005); -}); +Clazz.declarePackage ("java.awt.event"); +Clazz.load (["java.awt.event.ComponentEvent"], "java.awt.event.FocusEvent", ["jssun.awt.AppContext", "$.SunToolkit"], function () { +c$ = Clazz.decorateAsClass (function () { +this.temporary = false; +this.opposite = null; +Clazz.instantialize (this, arguments); +}, java.awt.event, "FocusEvent", java.awt.event.ComponentEvent); +Clazz.makeConstructor (c$, +function (source, id, temporary, opposite) { +Clazz.superConstructor (this, java.awt.event.FocusEvent, [source, id]); +this.temporary = temporary; +this.opposite = opposite; +}, "java.awt.Component,~N,~B,java.awt.Component"); +Clazz.makeConstructor (c$, +function (source, id, temporary) { +this.construct (source, id, temporary, null); +}, "java.awt.Component,~N,~B"); +Clazz.makeConstructor (c$, +function (source, id) { +this.construct (source, id, false); +}, "java.awt.Component,~N"); +Clazz.defineMethod (c$, "isTemporary", +function () { +return this.temporary; +}); +Clazz.defineMethod (c$, "getOppositeComponent", +function () { +if (this.opposite == null) { +return null; +}return (jssun.awt.SunToolkit.targetToAppContext (this.opposite) === jssun.awt.AppContext.getAppContext ()) ? this.opposite : null; +}); +Clazz.overrideMethod (c$, "paramString", +function () { +var typeStr; +switch (this.id) { +case 1004: +typeStr = "FOCUS_GAINED"; +break; +case 1005: +typeStr = "FOCUS_LOST"; +break; +default: +typeStr = "unknown type"; +} +return typeStr + (this.temporary ? ",temporary" : ",permanent") + ",opposite=" + this.getOppositeComponent (); +}); +Clazz.defineStatics (c$, +"FOCUS_FIRST", 1004, +"FOCUS_LAST", 1005, +"FOCUS_GAINED", 1004, +"FOCUS_LOST", 1005); +});