1 Clazz.declarePackage ("java.applet");
2 Clazz.load (["java.awt.Panel"], "java.applet.Applet", ["java.net.URL", "java.util.Locale"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, java.applet, "Applet", java.awt.Panel);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, java.applet.Applet, []);
12 Clazz.defineMethod (c$, "setStub",
15 }, "java.applet.AppletStub");
16 Clazz.defineMethod (c$, "isActive",
18 if (this.stub != null) {
19 return this.stub.isActive ();
23 Clazz.defineMethod (c$, "getDocumentBase",
25 return this.stub.getDocumentBase ();
27 Clazz.defineMethod (c$, "getCodeBase",
29 return this.stub.getCodeBase ();
31 Clazz.defineMethod (c$, "getParameter",
33 return this.stub.getParameter (name);
35 Clazz.defineMethod (c$, "getAppletContext",
37 return this.stub.getAppletContext ();
39 Clazz.defineMethod (c$, "resize",
40 function (width, height) {
42 if ((d.width != width) || (d.height != height)) {
43 Clazz.superCall (this, java.applet.Applet, "resize", [width, height]);
44 if (this.stub != null) {
45 this.stub.appletResize (width, height);
47 Clazz.defineMethod (c$, "resize",
49 this.resize (d.width, d.height);
50 }, "java.awt.Dimension");
51 Clazz.defineMethod (c$, "showStatus",
53 this.getAppletContext ().showStatus (msg);
55 Clazz.defineMethod (c$, "getImage",
57 return this.getAppletContext ().getImage (url);
59 Clazz.defineMethod (c$, "getImage",
60 function (url, name) {
62 return this.getImage ( new java.net.URL (url, name));
64 if (Clazz.exceptionOf (e, java.net.MalformedURLException)) {
70 }, "java.net.URL,~S");
71 Clazz.defineMethod (c$, "getAppletInfo",
75 Clazz.defineMethod (c$, "getLocale",
77 var locale = Clazz.superCall (this, java.applet.Applet, "getLocale", []);
79 return java.util.Locale.getDefault ();
82 Clazz.defineMethod (c$, "getParameterInfo",
86 Clazz.defineMethod (c$, "init",
89 Clazz.defineMethod (c$, "start",
92 Clazz.defineMethod (c$, "stop",
95 Clazz.defineMethod (c$, "destroy",