860dd33079a33b89fea69e82ef3dec83b0c7669d
[jalviewjs.git] / site / swingjs / j2s / swingjs / plaf / JSTextAreaUI.js
1 Clazz.declarePackage ("swingjs.plaf");\r
2 Clazz.load (["swingjs.plaf.JSTextUI"], "swingjs.plaf.JSTextAreaUI", ["swingjs.api.DOMNode"], function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.domBtn = null;\r
5 Clazz.instantialize (this, arguments);\r
6 }, swingjs.plaf, "JSTextAreaUI", swingjs.plaf.JSTextUI);\r
7 Clazz.overrideMethod (c$, "getDOMObject", \r
8 function () {\r
9 if (this.domNode == null) {\r
10 this.updateHandler.checkDocument ();\r
11 this.domBtn = this.focusNode = this.enableNode = this.textNode = this.domNode = this.createDOMObject ("textarea", this.id, []);\r
12 this.bindMouse (this.domNode);\r
13 this.bindKeys (this.domNode);\r
14 this.setFocusable ();\r
15 }this.setCssFont (swingjs.api.DOMNode.setAttr (this.domNode, "innerHTML", this.getComponentText ()), this.c.getFont ());\r
16 if (!this.editable) swingjs.api.DOMNode.setAttr (this.domNode, "readOnly", "true");\r
17 return this.domNode;\r
18 });\r
19 });\r