Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / applet / Applet.js
index 1c6cffd..5405bb5 100644 (file)
@@ -1,98 +1,98 @@
-Clazz.declarePackage ("java.applet");\r
-Clazz.load (["java.awt.Panel"], "java.applet.Applet", ["java.net.URL", "java.util.Locale"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.stub = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.applet, "Applet", java.awt.Panel);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-Clazz.superConstructor (this, java.applet.Applet, []);\r
-this.setPanel ();\r
-});\r
-Clazz.defineMethod (c$, "setStub", \r
-function (stub) {\r
-this.stub = stub;\r
-}, "java.applet.AppletStub");\r
-Clazz.defineMethod (c$, "isActive", \r
-function () {\r
-if (this.stub != null) {\r
-return this.stub.isActive ();\r
-} else {\r
-return false;\r
-}});\r
-Clazz.defineMethod (c$, "getDocumentBase", \r
-function () {\r
-return this.stub.getDocumentBase ();\r
-});\r
-Clazz.defineMethod (c$, "getCodeBase", \r
-function () {\r
-return this.stub.getCodeBase ();\r
-});\r
-Clazz.defineMethod (c$, "getParameter", \r
-function (name) {\r
-return this.stub.getParameter (name);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getAppletContext", \r
-function () {\r
-return this.stub.getAppletContext ();\r
-});\r
-Clazz.defineMethod (c$, "resize", \r
-function (width, height) {\r
-var d = this.size ();\r
-if ((d.width != width) || (d.height != height)) {\r
-Clazz.superCall (this, java.applet.Applet, "resize", [width, height]);\r
-if (this.stub != null) {\r
-this.stub.appletResize (width, height);\r
-}}}, "~N,~N");\r
-Clazz.defineMethod (c$, "resize", \r
-function (d) {\r
-this.resize (d.width, d.height);\r
-}, "java.awt.Dimension");\r
-Clazz.defineMethod (c$, "showStatus", \r
-function (msg) {\r
-this.getAppletContext ().showStatus (msg);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getImage", \r
-function (url) {\r
-return this.getAppletContext ().getImage (url);\r
-}, "java.net.URL");\r
-Clazz.defineMethod (c$, "getImage", \r
-function (url, name) {\r
-try {\r
-return this.getImage ( new java.net.URL (url, name));\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, java.net.MalformedURLException)) {\r
-return null;\r
-} else {\r
-throw e;\r
-}\r
-}\r
-}, "java.net.URL,~S");\r
-Clazz.defineMethod (c$, "getAppletInfo", \r
-function () {\r
-return null;\r
-});\r
-Clazz.defineMethod (c$, "getLocale", \r
-function () {\r
-var locale = Clazz.superCall (this, java.applet.Applet, "getLocale", []);\r
-if (locale == null) {\r
-return java.util.Locale.getDefault ();\r
-}return locale;\r
-});\r
-Clazz.defineMethod (c$, "getParameterInfo", \r
-function () {\r
-return null;\r
-});\r
-Clazz.defineMethod (c$, "init", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "start", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "stop", \r
-function () {\r
-});\r
-Clazz.defineMethod (c$, "destroy", \r
-function () {\r
-});\r
-});\r
+Clazz.declarePackage ("java.applet");
+Clazz.load (["java.awt.Panel"], "java.applet.Applet", ["java.net.URL", "java.util.Locale"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.stub = null;
+Clazz.instantialize (this, arguments);
+}, java.applet, "Applet", java.awt.Panel);
+Clazz.makeConstructor (c$, 
+function () {
+Clazz.superConstructor (this, java.applet.Applet, []);
+this.setPanel ();
+});
+Clazz.defineMethod (c$, "setStub", 
+function (stub) {
+this.stub = stub;
+}, "java.applet.AppletStub");
+Clazz.defineMethod (c$, "isActive", 
+function () {
+if (this.stub != null) {
+return this.stub.isActive ();
+} else {
+return false;
+}});
+Clazz.defineMethod (c$, "getDocumentBase", 
+function () {
+return this.stub.getDocumentBase ();
+});
+Clazz.defineMethod (c$, "getCodeBase", 
+function () {
+return this.stub.getCodeBase ();
+});
+Clazz.defineMethod (c$, "getParameter", 
+function (name) {
+return this.stub.getParameter (name);
+}, "~S");
+Clazz.defineMethod (c$, "getAppletContext", 
+function () {
+return this.stub.getAppletContext ();
+});
+Clazz.defineMethod (c$, "resize", 
+function (width, height) {
+var d = this.size ();
+if ((d.width != width) || (d.height != height)) {
+Clazz.superCall (this, java.applet.Applet, "resize", [width, height]);
+if (this.stub != null) {
+this.stub.appletResize (width, height);
+}}}, "~N,~N");
+Clazz.defineMethod (c$, "resize", 
+function (d) {
+this.resize (d.width, d.height);
+}, "java.awt.Dimension");
+Clazz.defineMethod (c$, "showStatus", 
+function (msg) {
+this.getAppletContext ().showStatus (msg);
+}, "~S");
+Clazz.defineMethod (c$, "getImage", 
+function (url) {
+return this.getAppletContext ().getImage (url);
+}, "java.net.URL");
+Clazz.defineMethod (c$, "getImage", 
+function (url, name) {
+try {
+return this.getImage ( new java.net.URL (url, name));
+} catch (e) {
+if (Clazz.exceptionOf (e, java.net.MalformedURLException)) {
+return null;
+} else {
+throw e;
+}
+}
+}, "java.net.URL,~S");
+Clazz.defineMethod (c$, "getAppletInfo", 
+function () {
+return null;
+});
+Clazz.defineMethod (c$, "getLocale", 
+function () {
+var locale = Clazz.superCall (this, java.applet.Applet, "getLocale", []);
+if (locale == null) {
+return java.util.Locale.getDefault ();
+}return locale;
+});
+Clazz.defineMethod (c$, "getParameterInfo", 
+function () {
+return null;
+});
+Clazz.defineMethod (c$, "init", 
+function () {
+});
+Clazz.defineMethod (c$, "start", 
+function () {
+});
+Clazz.defineMethod (c$, "stop", 
+function () {
+});
+Clazz.defineMethod (c$, "destroy", 
+function () {
+});
+});