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
5 Clazz.instantialize (this, arguments);
\r
6 }, swingjs.plaf, "JSTextAreaUI", swingjs.plaf.JSTextUI);
\r
7 Clazz.overrideMethod (c$, "getDOMObject",
\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