X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fswingjs%2Fplaf%2FJSTextAreaUI.js;fp=site%2Fswingjs%2Fj2s%2Fswingjs%2Fplaf%2FJSTextAreaUI.js;h=bebbd022332c60fff0690efc65a11a9b437784dd;hp=860dd33079a33b89fea69e82ef3dec83b0c7669d;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/swingjs/plaf/JSTextAreaUI.js b/site/swingjs/j2s/swingjs/plaf/JSTextAreaUI.js index 860dd33..bebbd02 100644 --- a/site/swingjs/j2s/swingjs/plaf/JSTextAreaUI.js +++ b/site/swingjs/j2s/swingjs/plaf/JSTextAreaUI.js @@ -1,19 +1,19 @@ -Clazz.declarePackage ("swingjs.plaf"); -Clazz.load (["swingjs.plaf.JSTextUI"], "swingjs.plaf.JSTextAreaUI", ["swingjs.api.DOMNode"], function () { -c$ = Clazz.decorateAsClass (function () { -this.domBtn = null; -Clazz.instantialize (this, arguments); -}, swingjs.plaf, "JSTextAreaUI", swingjs.plaf.JSTextUI); -Clazz.overrideMethod (c$, "getDOMObject", -function () { -if (this.domNode == null) { -this.updateHandler.checkDocument (); -this.domBtn = this.focusNode = this.enableNode = this.textNode = this.domNode = this.createDOMObject ("textarea", this.id, []); -this.bindMouse (this.domNode); -this.bindKeys (this.domNode); -this.setFocusable (); -}this.setCssFont (swingjs.api.DOMNode.setAttr (this.domNode, "innerHTML", this.getComponentText ()), this.c.getFont ()); -if (!this.editable) swingjs.api.DOMNode.setAttr (this.domNode, "readOnly", "true"); -return this.domNode; -}); -}); +Clazz.declarePackage ("swingjs.plaf"); +Clazz.load (["swingjs.plaf.JSTextUI"], "swingjs.plaf.JSTextAreaUI", ["swingjs.api.DOMNode"], function () { +c$ = Clazz.decorateAsClass (function () { +this.domBtn = null; +Clazz.instantialize (this, arguments); +}, swingjs.plaf, "JSTextAreaUI", swingjs.plaf.JSTextUI); +Clazz.overrideMethod (c$, "getDOMObject", +function () { +if (this.domNode == null) { +this.updateHandler.checkDocument (); +this.domBtn = this.focusNode = this.enableNode = this.textNode = this.domNode = this.createDOMObject ("textarea", this.id, []); +this.bindMouse (this.domNode); +this.bindKeys (this.domNode); +this.setFocusable (); +}this.setCssFont (swingjs.api.DOMNode.setAttr (this.domNode, "innerHTML", this.getComponentText ()), this.c.getFont ()); +if (!this.editable) swingjs.api.DOMNode.setAttr (this.domNode, "readOnly", "true"); +return this.domNode; +}); +});