X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjssun%2Fawt%2FPostEventQueue.js;fp=site%2Fswingjs%2Fj2s%2Fjssun%2Fawt%2FPostEventQueue.js;h=134b28ed3142621143cc0aec70c01ec734aada50;hp=84876c48d8eb918254adbf35a409aa53204f4cce;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/jssun/awt/PostEventQueue.js b/site/swingjs/j2s/jssun/awt/PostEventQueue.js index 84876c4..134b28e 100644 --- a/site/swingjs/j2s/jssun/awt/PostEventQueue.js +++ b/site/swingjs/j2s/jssun/awt/PostEventQueue.js @@ -1,41 +1,41 @@ -Clazz.declarePackage ("jssun.awt"); -Clazz.load (null, "jssun.awt.PostEventQueue", ["jssun.awt.EventQueueItem", "$.SunToolkit", "swingjs.JSToolkit"], function () { -c$ = Clazz.decorateAsClass (function () { -this.queueHead = null; -this.queueTail = null; -this.eventQueue = null; -Clazz.instantialize (this, arguments); -}, jssun.awt, "PostEventQueue"); -Clazz.makeConstructor (c$, -function (eq) { -this.eventQueue = eq; -}, "java.awt.EventQueue"); -Clazz.defineMethod (c$, "noEvents", -function () { -return this.queueHead == null; -}); -Clazz.defineMethod (c$, "flush", -function () { -if (this.queueHead != null) { -var tempQueue; -{ -tempQueue = this.queueHead; -this.queueHead = this.queueTail = null; -while (tempQueue != null) { -swingjs.JSToolkit.alert ("postevent IS NOT IMPLEMENTED " + tempQueue.event); -this.eventQueue.postEvent (tempQueue.event); -tempQueue = tempQueue.next; -} -}}}); -Clazz.defineMethod (c$, "postEvent", -function (event) { -var item = new jssun.awt.EventQueueItem (event); -{ -if (this.queueHead == null) { -this.queueHead = this.queueTail = item; -} else { -this.queueTail.next = item; -this.queueTail = item; -}}jssun.awt.SunToolkit.wakeupEventQueue (this.eventQueue, false); -}, "java.awt.AWTEvent"); -}); +Clazz.declarePackage ("jssun.awt"); +Clazz.load (null, "jssun.awt.PostEventQueue", ["jssun.awt.EventQueueItem", "$.SunToolkit", "swingjs.JSToolkit"], function () { +c$ = Clazz.decorateAsClass (function () { +this.queueHead = null; +this.queueTail = null; +this.eventQueue = null; +Clazz.instantialize (this, arguments); +}, jssun.awt, "PostEventQueue"); +Clazz.makeConstructor (c$, +function (eq) { +this.eventQueue = eq; +}, "java.awt.EventQueue"); +Clazz.defineMethod (c$, "noEvents", +function () { +return this.queueHead == null; +}); +Clazz.defineMethod (c$, "flush", +function () { +if (this.queueHead != null) { +var tempQueue; +{ +tempQueue = this.queueHead; +this.queueHead = this.queueTail = null; +while (tempQueue != null) { +swingjs.JSToolkit.alert ("postevent IS NOT IMPLEMENTED " + tempQueue.event); +this.eventQueue.postEvent (tempQueue.event); +tempQueue = tempQueue.next; +} +}}}); +Clazz.defineMethod (c$, "postEvent", +function (event) { +var item = new jssun.awt.EventQueueItem (event); +{ +if (this.queueHead == null) { +this.queueHead = this.queueTail = item; +} else { +this.queueTail.next = item; +this.queueTail = item; +}}jssun.awt.SunToolkit.wakeupEventQueue (this.eventQueue, false); +}, "java.awt.AWTEvent"); +});