1 Clazz.declarePackage ("jssun.awt");
\r
2 Clazz.load (["java.awt.AWTEvent", "$.ActiveEvent"], "jssun.awt.ModalityEvent", ["java.lang.Error"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.listener = null;
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, jssun.awt, "ModalityEvent", java.awt.AWTEvent, java.awt.ActiveEvent);
\r
7 Clazz.makeConstructor (c$,
\r
8 function (source, listener, id) {
\r
9 Clazz.superConstructor (this, jssun.awt.ModalityEvent, [source, id]);
\r
10 this.listener = listener;
\r
11 }, "~O,jssun.awt.ModalityListener,~N");
\r
12 Clazz.overrideMethod (c$, "dispatch",
\r
14 switch (this.getID ()) {
\r
16 this.listener.modalityPushed (this);
\r
19 this.listener.modalityPopped (this);
\r
22 throw new Error ("Invalid event id.");
\r
25 Clazz.defineStatics (c$,
\r
26 "MODALITY_PUSHED", 1300,
\r
27 "MODALITY_POPPED", 1301);
\r