JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / javajs / swing / JEditorPane.js
1 Clazz.declarePackage ("javajs.swing");
2 Clazz.load (["javajs.swing.JComponent"], "javajs.swing.JEditorPane", ["javajs.util.SB"], function () {
3 c$ = Clazz.declareType (javajs.swing, "JEditorPane", javajs.swing.JComponent);
4 Clazz.makeConstructor (c$, 
5 function () {
6 Clazz.superConstructor (this, javajs.swing.JEditorPane, ["txtJEP"]);
7 this.text = "";
8 });
9 Clazz.overrideMethod (c$, "toHTML", 
10 function () {
11 var sb =  new javajs.util.SB ();
12 sb.append ("<textarea type=text id='" + this.id + "' class='JEditorPane' style='" + this.getCSSstyle (98, 98) + "'>" + this.text + "</textarea>");
13 return sb.toString ();
14 });
15 });