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