Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / swingjs / plaf / JSScrollPaneUI.js
index 35877e4..26ae222 100644 (file)
@@ -1,45 +1,45 @@
-Clazz.declarePackage ("swingjs.plaf");\r
-Clazz.load (["swingjs.plaf.JSComponentUI"], "swingjs.plaf.JSScrollPaneUI", ["swingjs.JSToolkit", "swingjs.api.DOMNode"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.scrolledComponent = null;\r
-this.scrollpane = null;\r
-this.viewport = null;\r
-this.scrolledUI = null;\r
-Clazz.instantialize (this, arguments);\r
-}, swingjs.plaf, "JSScrollPaneUI", swingjs.plaf.JSComponentUI);\r
-Clazz.overrideMethod (c$, "getDOMObject", \r
-function () {\r
-this.isContainer = true;\r
-this.scrollpane = this.c;\r
-if (this.domNode == null) {\r
-this.domNode = this.createDOMObject ("div", this.id, []);\r
-}var v = this.scrollpane.getViewport ();\r
-if (v != null) {\r
-this.viewport = v;\r
-System.out.println ("JSScrollPaneUI v=" + v);\r
-var sc = null;\r
-try {\r
-sc = v.getComponent (0);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-} else {\r
-throw e;\r
-}\r
-}\r
-if (sc != null && sc !== this.scrolledComponent) {\r
-this.scrolledComponent = sc;\r
-this.scrolledUI = swingjs.JSToolkit.getUI (sc, false);\r
-this.scrollNode = this.scrolledUI.outerNode;\r
-if (this.scrollNode == null) this.scrollNode = this.scrolledUI.setHTMLElement ();\r
-swingjs.api.DOMNode.setSize (this.scrollNode, this.c.getWidth (), this.c.getHeight ());\r
-this.scrolledUI.scrollerNode = this;\r
-this.components =  Clazz.newArray (-1, [this.scrolledComponent]);\r
-}}return this.domNode;\r
-});\r
-Clazz.overrideMethod (c$, "installJSUI", \r
-function () {\r
-});\r
-Clazz.overrideMethod (c$, "uninstallJSUI", \r
-function () {\r
-});\r
-});\r
+Clazz.declarePackage ("swingjs.plaf");
+Clazz.load (["swingjs.plaf.JSComponentUI"], "swingjs.plaf.JSScrollPaneUI", ["swingjs.JSToolkit", "swingjs.api.DOMNode"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.scrolledComponent = null;
+this.scrollpane = null;
+this.viewport = null;
+this.scrolledUI = null;
+Clazz.instantialize (this, arguments);
+}, swingjs.plaf, "JSScrollPaneUI", swingjs.plaf.JSComponentUI);
+Clazz.overrideMethod (c$, "getDOMObject", 
+function () {
+this.isContainer = true;
+this.scrollpane = this.c;
+if (this.domNode == null) {
+this.domNode = this.createDOMObject ("div", this.id, []);
+}var v = this.scrollpane.getViewport ();
+if (v != null) {
+this.viewport = v;
+System.out.println ("JSScrollPaneUI v=" + v);
+var sc = null;
+try {
+sc = v.getComponent (0);
+} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+} else {
+throw e;
+}
+}
+if (sc != null && sc !== this.scrolledComponent) {
+this.scrolledComponent = sc;
+this.scrolledUI = swingjs.JSToolkit.getUI (sc, false);
+this.scrollNode = this.scrolledUI.outerNode;
+if (this.scrollNode == null) this.scrollNode = this.scrolledUI.setHTMLElement ();
+swingjs.api.DOMNode.setSize (this.scrollNode, this.c.getWidth (), this.c.getHeight ());
+this.scrolledUI.scrollerNode = this;
+this.components =  Clazz.newArray (-1, [this.scrolledComponent]);
+}}return this.domNode;
+});
+Clazz.overrideMethod (c$, "installJSUI", 
+function () {
+});
+Clazz.overrideMethod (c$, "uninstallJSUI", 
+function () {
+});
+});