Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / jssun / swing / SwingLazyValue.js
index 6635923..8bb8eb7 100644 (file)
@@ -1,65 +1,65 @@
-Clazz.declarePackage ("jssun.swing");\r
-Clazz.load (["javax.swing.UIDefaults"], "jssun.swing.SwingLazyValue", ["java.lang.Boolean", "java.awt.Color", "javax.swing.plaf.ColorUIResource"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.className = null;\r
-this.methodName = null;\r
-this.args = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.swing, "SwingLazyValue", null, javax.swing.UIDefaults.LazyValue);\r
-Clazz.makeConstructor (c$, \r
-function (c) {\r
-this.construct (c, Clazz.castNullAs ("String"));\r
-}, "~S");\r
-Clazz.makeConstructor (c$, \r
-function (c, m) {\r
-this.construct (c, m, null);\r
-}, "~S,~S");\r
-Clazz.makeConstructor (c$, \r
-function (c, o) {\r
-this.construct (c, null, o);\r
-}, "~S,~A");\r
-Clazz.makeConstructor (c$, \r
-function (c, m, o) {\r
-this.className = c;\r
-this.methodName = m;\r
-if (o != null) {\r
-this.args = o.clone ();\r
-}}, "~S,~S,~A");\r
-Clazz.overrideMethod (c$, "createValue", \r
-function (table) {\r
-try {\r
-var c = Clazz._4Name (this.className, true, null);\r
-if (this.methodName != null) {\r
-var types = this.getClassArray (this.args);\r
-var m = c.getMethod (this.methodName, types);\r
-return m.invoke (c, this.args);\r
-} else {\r
-var types = this.getClassArray (this.args);\r
-var constructor = c.getConstructor (types);\r
-return constructor.newInstance (this.args);\r
-}} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-} else {\r
-throw e;\r
-}\r
-}\r
-return null;\r
-}, "javax.swing.UIDefaults");\r
-Clazz.defineMethod (c$, "getClassArray", \r
- function (args) {\r
-var types = null;\r
-if (args != null) {\r
-types =  new Array (args.length);\r
-for (var i = 0; i < args.length; i++) {\r
-if (Clazz.instanceOf (args[i], Integer)) {\r
-types[i] = Integer.TYPE;\r
-} else if (Clazz.instanceOf (args[i], Boolean)) {\r
-types[i] = Boolean.TYPE;\r
-} else if (Clazz.instanceOf (args[i], javax.swing.plaf.ColorUIResource)) {\r
-types[i] = java.awt.Color;\r
-} else {\r
-types[i] = args[i].getClass ();\r
-}}\r
-}return types;\r
-}, "~A");\r
-});\r
+Clazz.declarePackage ("jssun.swing");
+Clazz.load (["javax.swing.UIDefaults"], "jssun.swing.SwingLazyValue", ["java.lang.Boolean", "java.awt.Color", "javax.swing.plaf.ColorUIResource"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.className = null;
+this.methodName = null;
+this.args = null;
+Clazz.instantialize (this, arguments);
+}, jssun.swing, "SwingLazyValue", null, javax.swing.UIDefaults.LazyValue);
+Clazz.makeConstructor (c$, 
+function (c) {
+this.construct (c, Clazz.castNullAs ("String"));
+}, "~S");
+Clazz.makeConstructor (c$, 
+function (c, m) {
+this.construct (c, m, null);
+}, "~S,~S");
+Clazz.makeConstructor (c$, 
+function (c, o) {
+this.construct (c, null, o);
+}, "~S,~A");
+Clazz.makeConstructor (c$, 
+function (c, m, o) {
+this.className = c;
+this.methodName = m;
+if (o != null) {
+this.args = o.clone ();
+}}, "~S,~S,~A");
+Clazz.overrideMethod (c$, "createValue", 
+function (table) {
+try {
+var c = Clazz._4Name (this.className, true, null);
+if (this.methodName != null) {
+var types = this.getClassArray (this.args);
+var m = c.getMethod (this.methodName, types);
+return m.invoke (c, this.args);
+} else {
+var types = this.getClassArray (this.args);
+var constructor = c.getConstructor (types);
+return constructor.newInstance (this.args);
+}} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+} else {
+throw e;
+}
+}
+return null;
+}, "javax.swing.UIDefaults");
+Clazz.defineMethod (c$, "getClassArray", 
+ function (args) {
+var types = null;
+if (args != null) {
+types =  new Array (args.length);
+for (var i = 0; i < args.length; i++) {
+if (Clazz.instanceOf (args[i], Integer)) {
+types[i] = Integer.TYPE;
+} else if (Clazz.instanceOf (args[i], Boolean)) {
+types[i] = Boolean.TYPE;
+} else if (Clazz.instanceOf (args[i], javax.swing.plaf.ColorUIResource)) {
+types[i] = java.awt.Color;
+} else {
+types[i] = args[i].getClass ();
+}}
+}return types;
+}, "~A");
+});