f23d066be6abfe81bc3f0e31dac724a7aefb0537
[jalviewjs.git] / site / j2s / javax / swing / text / DefaultEditorKit.js
1 Clazz.declarePackage ("javax.swing.text");
2 Clazz.load (["javax.swing.text.EditorKit", "$.TextAction"], "javax.swing.text.DefaultEditorKit", ["java.io.InputStreamReader", "$.OutputStreamWriter", "java.awt.ComponentOrientation", "$.Point", "$.Rectangle", "javax.swing.UIManager", "javax.swing.text.BadLocationException", "$.DefaultCaret", "$.Position", "$.Segment", "$.Utilities", "swingjs.JSPlainDocument"], function () {
3 c$ = Clazz.declareType (javax.swing.text, "DefaultEditorKit", javax.swing.text.EditorKit);
4 Clazz.makeConstructor (c$, 
5 function () {
6 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit, []);
7 });
8 Clazz.overrideMethod (c$, "getContentType", 
9 function () {
10 return "text/plain";
11 });
12 Clazz.overrideMethod (c$, "getViewFactory", 
13 function () {
14 return null;
15 });
16 Clazz.overrideMethod (c$, "getActions", 
17 function () {
18 return javax.swing.text.DefaultEditorKit.defaultActions;
19 });
20 Clazz.overrideMethod (c$, "createCaret", 
21 function () {
22 return null;
23 });
24 Clazz.overrideMethod (c$, "createDefaultDocument", 
25 function () {
26 return  new swingjs.JSPlainDocument ();
27 });
28 Clazz.defineMethod (c$, "read", 
29 function ($in, doc, pos) {
30 this.read ( new java.io.InputStreamReader ($in), doc, pos);
31 }, "java.io.InputStream,javax.swing.text.Document,~N");
32 Clazz.defineMethod (c$, "write", 
33 function (out, doc, pos, len) {
34 var osw =  new java.io.OutputStreamWriter (out);
35 this.write (osw, doc, pos, len);
36 osw.flush ();
37 }, "java.io.OutputStream,javax.swing.text.Document,~N,~N");
38 Clazz.defineMethod (c$, "getInputAttributes", 
39 function () {
40 return null;
41 });
42 Clazz.defineMethod (c$, "read", 
43 function ($in, doc, pos) {
44 var buff =  Clazz.newCharArray (4096, '\0');
45 var nch;
46 var lastWasCR = false;
47 var isCRLF = false;
48 var isCR = false;
49 var last;
50 var wasEmpty = (doc.getLength () == 0);
51 var attr = this.getInputAttributes ();
52 while ((nch = $in.read (buff, 0, buff.length)) != -1) {
53 last = 0;
54 for (var counter = 0; counter < nch; counter++) {
55 switch (buff[counter]) {
56 case '\r':
57 if (lastWasCR) {
58 isCR = true;
59 if (counter == 0) {
60 doc.insertString (pos, "\n", attr);
61 pos++;
62 } else {
63 buff[counter - 1] = '\n';
64 }} else {
65 lastWasCR = true;
66 }break;
67 case '\n':
68 if (lastWasCR) {
69 if (counter > (last + 1)) {
70 doc.insertString (pos,  String.instantialize (buff, last, counter - last - 1), attr);
71 pos += (counter - last - 1);
72 }lastWasCR = false;
73 last = counter;
74 isCRLF = true;
75 }break;
76 default:
77 if (lastWasCR) {
78 isCR = true;
79 if (counter == 0) {
80 doc.insertString (pos, "\n", attr);
81 pos++;
82 } else {
83 buff[counter - 1] = '\n';
84 }lastWasCR = false;
85 }break;
86 }
87 }
88 if (last < nch) {
89 if (lastWasCR) {
90 if (last < (nch - 1)) {
91 doc.insertString (pos,  String.instantialize (buff, last, nch - last - 1), attr);
92 pos += (nch - last - 1);
93 }} else {
94 doc.insertString (pos,  String.instantialize (buff, last, nch - last), attr);
95 pos += (nch - last);
96 }}}
97 if (lastWasCR) {
98 doc.insertString (pos, "\n", attr);
99 isCR = true;
100 }if (wasEmpty) {
101 if (isCRLF) {
102 doc.putProperty ("__EndOfLine__", "\r\n");
103 } else if (isCR) {
104 doc.putProperty ("__EndOfLine__", "\r");
105 } else {
106 doc.putProperty ("__EndOfLine__", "\n");
107 }}}, "java.io.Reader,javax.swing.text.Document,~N");
108 Clazz.defineMethod (c$, "write", 
109 function (out, doc, pos, len) {
110 if ((pos < 0) || ((pos + len) > doc.getLength ())) {
111 throw  new javax.swing.text.BadLocationException ("DefaultEditorKit.write", pos);
112 }var data =  new javax.swing.text.Segment ();
113 var nleft = len;
114 var offs = pos;
115 var endOfLineProperty = doc.getProperty ("__EndOfLine__");
116 if (endOfLineProperty == null) {
117 try {
118 endOfLineProperty = System.getProperty ("line.separator");
119 } catch (se) {
120 if (Clazz.exceptionOf (se, SecurityException)) {
121 } else {
122 throw se;
123 }
124 }
125 }var endOfLine;
126 if (Clazz.instanceOf (endOfLineProperty, String)) {
127 endOfLine = endOfLineProperty;
128 } else {
129 endOfLine = null;
130 }if (endOfLineProperty != null && !endOfLine.equals ("\n")) {
131 while (nleft > 0) {
132 var n = Math.min (nleft, 4096);
133 doc.getText (offs, n, data);
134 var last = data.offset;
135 var array = data.array;
136 var maxCounter = last + data.count;
137 for (var counter = last; counter < maxCounter; counter++) {
138 if (array[counter] == '\n') {
139 if (counter > last) {
140 out.write (array, last, counter - last);
141 }out.write (endOfLine);
142 last = counter + 1;
143 }}
144 if (maxCounter > last) {
145 out.write (array, last, maxCounter - last);
146 }offs += n;
147 nleft -= n;
148 }
149 } else {
150 while (nleft > 0) {
151 var n = Math.min (nleft, 4096);
152 doc.getText (offs, n, data);
153 out.write (data.array, data.offset, data.count);
154 offs += n;
155 nleft -= n;
156 }
157 }out.flush ();
158 }, "java.io.Writer,javax.swing.text.Document,~N,~N");
159 Clazz.pu$h(self.c$);
160 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "DefaultKeyTypedAction", javax.swing.text.TextAction);
161 Clazz.makeConstructor (c$, 
162 function () {
163 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, ["default-typed"]);
164 });
165 Clazz.overrideMethod (c$, "actionPerformed", 
166 function (a) {
167 var b = this.getTextComponent (a);
168 if ((b != null) && (a != null)) {
169 if ((!b.isEditable ()) || (!b.isEnabled ())) {
170 return;
171 }var c = a.getActionCommand ();
172 var d = a.getModifiers ();
173 if ((c != null) && (c.length > 0) && ((d & 8) == (d & 2))) {
174 var e = c.charAt (0);
175 if ((e.charCodeAt (0) >= 0x20) && (e.charCodeAt (0) != 0x7F)) {
176 b.replaceSelection (c);
177 }}}}, "java.awt.event.ActionEvent");
178 c$ = Clazz.p0p ();
179 Clazz.pu$h(self.c$);
180 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "InsertContentAction", javax.swing.text.TextAction);
181 Clazz.makeConstructor (c$, 
182 function () {
183 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.InsertContentAction, ["insert-content"]);
184 });
185 Clazz.overrideMethod (c$, "actionPerformed", 
186 function (a) {
187 var b = this.getTextComponent (a);
188 if ((b != null) && (a != null)) {
189 if ((!b.isEditable ()) || (!b.isEnabled ())) {
190 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
191 return;
192 }var c = a.getActionCommand ();
193 if (c != null) {
194 b.replaceSelection (c);
195 } else {
196 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
197 }}}, "java.awt.event.ActionEvent");
198 c$ = Clazz.p0p ();
199 Clazz.pu$h(self.c$);
200 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "InsertBreakAction", javax.swing.text.TextAction);
201 Clazz.makeConstructor (c$, 
202 function () {
203 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.InsertBreakAction, ["insert-break"]);
204 });
205 Clazz.overrideMethod (c$, "actionPerformed", 
206 function (a) {
207 var b = this.getTextComponent (a);
208 if (b != null) {
209 if ((!b.isEditable ()) || (!b.isEnabled ())) {
210 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
211 return;
212 }b.replaceSelection ("\n");
213 }}, "java.awt.event.ActionEvent");
214 c$ = Clazz.p0p ();
215 Clazz.pu$h(self.c$);
216 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "InsertTabAction", javax.swing.text.TextAction);
217 Clazz.makeConstructor (c$, 
218 function () {
219 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.InsertTabAction, ["insert-tab"]);
220 });
221 Clazz.overrideMethod (c$, "actionPerformed", 
222 function (a) {
223 var b = this.getTextComponent (a);
224 if (b != null) {
225 if ((!b.isEditable ()) || (!b.isEnabled ())) {
226 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
227 return;
228 }b.replaceSelection ("\t");
229 }}, "java.awt.event.ActionEvent");
230 c$ = Clazz.p0p ();
231 Clazz.pu$h(self.c$);
232 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "DeletePrevCharAction", javax.swing.text.TextAction);
233 Clazz.makeConstructor (c$, 
234 function () {
235 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.DeletePrevCharAction, ["delete-previous"]);
236 });
237 Clazz.overrideMethod (c$, "actionPerformed", 
238 function (a) {
239 var b = this.getTextComponent (a);
240 var c = true;
241 if ((b != null) && (b.isEditable ())) {
242 try {
243 var d = b.getDocument ();
244 var e = b.getCaret ();
245 var f = e.getDot ();
246 var g = e.getMark ();
247 if (f != g) {
248 d.remove (Math.min (f, g), Math.abs (f - g));
249 c = false;
250 } else if (f > 0) {
251 var h = 1;
252 if (f > 1) {
253 var i = d.getText (f - 2, 2);
254 var j = i.charAt (0);
255 var k = i.charAt (1);
256 if (j >= '\uD800' && j <= '\uDBFF' && k >= '\uDC00' && k <= '\uDFFF') {
257 h = 2;
258 }}d.remove (f - h, h);
259 c = false;
260 }} catch (bl) {
261 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
262 } else {
263 throw bl;
264 }
265 }
266 }if (c) {
267 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
268 }}, "java.awt.event.ActionEvent");
269 c$ = Clazz.p0p ();
270 Clazz.pu$h(self.c$);
271 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "DeleteNextCharAction", javax.swing.text.TextAction);
272 Clazz.makeConstructor (c$, 
273 function () {
274 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.DeleteNextCharAction, ["delete-next"]);
275 });
276 Clazz.overrideMethod (c$, "actionPerformed", 
277 function (a) {
278 var b = this.getTextComponent (a);
279 var c = true;
280 if ((b != null) && (b.isEditable ())) {
281 try {
282 var d = b.getDocument ();
283 var e = b.getCaret ();
284 var f = e.getDot ();
285 var g = e.getMark ();
286 if (f != g) {
287 d.remove (Math.min (f, g), Math.abs (f - g));
288 c = false;
289 } else if (f < d.getLength ()) {
290 var h = 1;
291 if (f < d.getLength () - 1) {
292 var i = d.getText (f, 2);
293 var j = i.charAt (0);
294 var k = i.charAt (1);
295 if (j >= '\uD800' && j <= '\uDBFF' && k >= '\uDC00' && k <= '\uDFFF') {
296 h = 2;
297 }}d.remove (f, h);
298 c = false;
299 }} catch (bl) {
300 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
301 } else {
302 throw bl;
303 }
304 }
305 }if (c) {
306 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
307 }}, "java.awt.event.ActionEvent");
308 c$ = Clazz.p0p ();
309 Clazz.pu$h(self.c$);
310 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "ReadOnlyAction", javax.swing.text.TextAction);
311 Clazz.makeConstructor (c$, 
312 function () {
313 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.ReadOnlyAction, ["set-read-only"]);
314 });
315 Clazz.overrideMethod (c$, "actionPerformed", 
316 function (a) {
317 var b = this.getTextComponent (a);
318 if (b != null) {
319 b.setEditable (false);
320 }}, "java.awt.event.ActionEvent");
321 c$ = Clazz.p0p ();
322 Clazz.pu$h(self.c$);
323 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "WritableAction", javax.swing.text.TextAction);
324 Clazz.makeConstructor (c$, 
325 function () {
326 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.WritableAction, ["set-writable"]);
327 });
328 Clazz.overrideMethod (c$, "actionPerformed", 
329 function (a) {
330 var b = this.getTextComponent (a);
331 if (b != null) {
332 b.setEditable (true);
333 }}, "java.awt.event.ActionEvent");
334 c$ = Clazz.p0p ();
335 Clazz.pu$h(self.c$);
336 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "CutAction", javax.swing.text.TextAction);
337 Clazz.makeConstructor (c$, 
338 function () {
339 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.CutAction, ["cut-to-clipboard"]);
340 });
341 Clazz.overrideMethod (c$, "actionPerformed", 
342 function (a) {
343 var b = this.getTextComponent (a);
344 if (b != null) {
345 b.cut ();
346 }}, "java.awt.event.ActionEvent");
347 c$ = Clazz.p0p ();
348 Clazz.pu$h(self.c$);
349 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "CopyAction", javax.swing.text.TextAction);
350 Clazz.makeConstructor (c$, 
351 function () {
352 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.CopyAction, ["copy-to-clipboard"]);
353 });
354 Clazz.overrideMethod (c$, "actionPerformed", 
355 function (a) {
356 var b = this.getTextComponent (a);
357 if (b != null) {
358 b.copy ();
359 }}, "java.awt.event.ActionEvent");
360 c$ = Clazz.p0p ();
361 Clazz.pu$h(self.c$);
362 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "PasteAction", javax.swing.text.TextAction);
363 Clazz.makeConstructor (c$, 
364 function () {
365 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.PasteAction, ["paste-from-clipboard"]);
366 });
367 Clazz.overrideMethod (c$, "actionPerformed", 
368 function (a) {
369 var b = this.getTextComponent (a);
370 if (b != null) {
371 b.paste ();
372 }}, "java.awt.event.ActionEvent");
373 c$ = Clazz.p0p ();
374 Clazz.pu$h(self.c$);
375 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "BeepAction", javax.swing.text.TextAction);
376 Clazz.makeConstructor (c$, 
377 function () {
378 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.BeepAction, ["beep"]);
379 });
380 Clazz.overrideMethod (c$, "actionPerformed", 
381 function (a) {
382 var b = this.getTextComponent (a);
383 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
384 }, "java.awt.event.ActionEvent");
385 c$ = Clazz.p0p ();
386 Clazz.pu$h(self.c$);
387 c$ = Clazz.decorateAsClass (function () {
388 this.select = false;
389 this.direction = 0;
390 Clazz.instantialize (this, arguments);
391 }, javax.swing.text.DefaultEditorKit, "VerticalPageAction", javax.swing.text.TextAction);
392 Clazz.makeConstructor (c$, 
393 function (a, b, c) {
394 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.VerticalPageAction, [a]);
395 this.select = c;
396 this.direction = b;
397 }, "~S,~N,~B");
398 Clazz.overrideMethod (c$, "actionPerformed", 
399 function (a) {
400 var b = this.getTextComponent (a);
401 if (b != null) {
402 var c = b.getVisibleRect ();
403 var d =  new java.awt.Rectangle (c);
404 var e = b.getCaretPosition ();
405 var f = this.direction * b.getScrollableBlockIncrement (c, 1, this.direction);
406 var g = c.y;
407 var h = b.getCaret ();
408 var i = h.getMagicCaretPosition ();
409 if (e != -1) {
410 try {
411 var j = b.modelToView (e);
412 var k = (i != null) ? i.x : j.x;
413 var l = j.height;
414 if (l > 0) {
415 f = Clazz.doubleToInt (f / l) * l;
416 }d.y = this.constrainY (b, g + f, c.height);
417 var m;
418 if (c.contains (j.x, j.y)) {
419 m = b.viewToModel ( new java.awt.Point (k, this.constrainY (b, j.y + f, 0)));
420 } else {
421 if (this.direction == -1) {
422 m = b.viewToModel ( new java.awt.Point (k, d.y));
423 } else {
424 m = b.viewToModel ( new java.awt.Point (k, d.y + c.height));
425 }}m = this.constrainOffset (b, m);
426 if (m != e) {
427 this.adjustScrollIfNecessary (b, d, g, m);
428 if (this.select) {
429 b.moveCaretPosition (m);
430 } else {
431 b.setCaretPosition (m);
432 }}} catch (ble) {
433 if (Clazz.exceptionOf (ble, javax.swing.text.BadLocationException)) {
434 } else {
435 throw ble;
436 }
437 }
438 } else {
439 d.y = this.constrainY (b, g + f, c.height);
440 }if (i != null) {
441 h.setMagicCaretPosition (i);
442 }b.scrollRectToVisible (d);
443 }}, "java.awt.event.ActionEvent");
444 Clazz.defineMethod (c$, "constrainY", 
445  function (a, b, c) {
446 if (b < 0) {
447 b = 0;
448 } else if (b + c > a.getHeight ()) {
449 b = Math.max (0, a.getHeight () - c);
450 }return b;
451 }, "javax.swing.text.JTextComponent,~N,~N");
452 Clazz.defineMethod (c$, "constrainOffset", 
453  function (a, b) {
454 var c = a.getDocument ();
455 if ((b != 0) && (b > c.getLength ())) {
456 b = c.getLength ();
457 }if (b < 0) {
458 b = 0;
459 }return b;
460 }, "javax.swing.text.JTextComponent,~N");
461 Clazz.defineMethod (c$, "adjustScrollIfNecessary", 
462  function (a, b, c, d) {
463 try {
464 var e = a.modelToView (d);
465 if (e.y < b.y || (e.y > (b.y + b.height)) || (e.y + e.height) > (b.y + b.height)) {
466 var f;
467 if (e.y < b.y) {
468 f = e.y;
469 } else {
470 f = e.y + e.height - b.height;
471 }if ((this.direction == -1 && f < c) || (this.direction == 1 && f > c)) {
472 b.y = f;
473 }}} catch (ble) {
474 if (Clazz.exceptionOf (ble, javax.swing.text.BadLocationException)) {
475 } else {
476 throw ble;
477 }
478 }
479 }, "javax.swing.text.JTextComponent,java.awt.Rectangle,~N,~N");
480 c$ = Clazz.p0p ();
481 Clazz.pu$h(self.c$);
482 c$ = Clazz.decorateAsClass (function () {
483 this.select = false;
484 this.left = false;
485 Clazz.instantialize (this, arguments);
486 }, javax.swing.text.DefaultEditorKit, "PageAction", javax.swing.text.TextAction);
487 Clazz.makeConstructor (c$, 
488 function (a, b, c) {
489 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.PageAction, [a]);
490 this.select = c;
491 this.left = b;
492 }, "~S,~B,~B");
493 Clazz.overrideMethod (c$, "actionPerformed", 
494 function (a) {
495 var b = this.getTextComponent (a);
496 if (b != null) {
497 var c;
498 var d =  new java.awt.Rectangle ();
499 b.computeVisibleRect (d);
500 if (this.left) {
501 d.x = Math.max (0, d.x - d.width);
502 } else {
503 d.x += d.width;
504 }c = b.getCaretPosition ();
505 if (c != -1) {
506 if (this.left) {
507 c = b.viewToModel ( new java.awt.Point (d.x, d.y));
508 } else {
509 c = b.viewToModel ( new java.awt.Point (d.x + d.width - 1, d.y + d.height - 1));
510 }var e = b.getDocument ();
511 if ((c != 0) && (c > (e.getLength () - 1))) {
512 c = e.getLength () - 1;
513 } else if (c < 0) {
514 c = 0;
515 }if (this.select) b.moveCaretPosition (c);
516  else b.setCaretPosition (c);
517 }}}, "java.awt.event.ActionEvent");
518 c$ = Clazz.p0p ();
519 Clazz.pu$h(self.c$);
520 c$ = Clazz.decorateAsClass (function () {
521 this.select = false;
522 this.direction = 0;
523 Clazz.instantialize (this, arguments);
524 }, javax.swing.text.DefaultEditorKit, "NextVisualPositionAction", javax.swing.text.TextAction);
525 Clazz.makeConstructor (c$, 
526 function (a, b, c) {
527 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.NextVisualPositionAction, [a]);
528 this.select = b;
529 this.direction = c;
530 }, "~S,~B,~N");
531 Clazz.overrideMethod (c$, "actionPerformed", 
532 function (a) {
533 var b = this.getTextComponent (a);
534 if (b != null) {
535 var c = b.getCaret ();
536 var d = (Clazz.instanceOf (c, javax.swing.text.DefaultCaret)) ? c : null;
537 var e = c.getDot ();
538 var f =  new Array (1);
539 var g = c.getMagicCaretPosition ();
540 try {
541 if (g == null && (this.direction == 1 || this.direction == 5)) {
542 var h = (d != null) ? b.getUI ().modelToView (b, e, d.getDotBias ()) : b.modelToView (e);
543 g =  new java.awt.Point (h.x, h.y);
544 }var h = b.getNavigationFilter ();
545 if (h != null) {
546 e = h.getNextVisualPositionFrom (b, e, (d != null) ? d.getDotBias () : javax.swing.text.Position.Bias.Forward, this.direction, f);
547 } else {
548 e = b.getUI ().getNextVisualPositionFrom (b, e, (d != null) ? d.getDotBias () : javax.swing.text.Position.Bias.Forward, this.direction, f);
549 }if (f[0] == null) {
550 f[0] = javax.swing.text.Position.Bias.Forward;
551 }if (d != null) {
552 if (this.select) {
553 d.moveDot (e, f[0]);
554 } else {
555 d.setDot (e, f[0]);
556 }} else {
557 if (this.select) {
558 c.moveDot (e);
559 } else {
560 c.setDot (e);
561 }}if (g != null && (this.direction == 1 || this.direction == 5)) {
562 b.getCaret ().setMagicCaretPosition (g);
563 }} catch (ex) {
564 if (Clazz.exceptionOf (ex, javax.swing.text.BadLocationException)) {
565 } else {
566 throw ex;
567 }
568 }
569 }}, "java.awt.event.ActionEvent");
570 c$ = Clazz.p0p ();
571 Clazz.pu$h(self.c$);
572 c$ = Clazz.decorateAsClass (function () {
573 this.select = false;
574 Clazz.instantialize (this, arguments);
575 }, javax.swing.text.DefaultEditorKit, "BeginWordAction", javax.swing.text.TextAction);
576 Clazz.makeConstructor (c$, 
577 function (a, b) {
578 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.BeginWordAction, [a]);
579 this.select = b;
580 }, "~S,~B");
581 Clazz.overrideMethod (c$, "actionPerformed", 
582 function (a) {
583 var b = this.getTextComponent (a);
584 if (b != null) {
585 try {
586 var c = b.getCaretPosition ();
587 var d = javax.swing.text.Utilities.getWordStart (b, c);
588 if (this.select) {
589 b.moveCaretPosition (d);
590 } else {
591 b.setCaretPosition (d);
592 }} catch (bl) {
593 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
594 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
595 } else {
596 throw bl;
597 }
598 }
599 }}, "java.awt.event.ActionEvent");
600 c$ = Clazz.p0p ();
601 Clazz.pu$h(self.c$);
602 c$ = Clazz.decorateAsClass (function () {
603 this.select = false;
604 Clazz.instantialize (this, arguments);
605 }, javax.swing.text.DefaultEditorKit, "EndWordAction", javax.swing.text.TextAction);
606 Clazz.makeConstructor (c$, 
607 function (a, b) {
608 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.EndWordAction, [a]);
609 this.select = b;
610 }, "~S,~B");
611 Clazz.overrideMethod (c$, "actionPerformed", 
612 function (a) {
613 var b = this.getTextComponent (a);
614 if (b != null) {
615 try {
616 var c = b.getCaretPosition ();
617 var d = javax.swing.text.Utilities.getWordEnd (b, c);
618 if (this.select) {
619 b.moveCaretPosition (d);
620 } else {
621 b.setCaretPosition (d);
622 }} catch (bl) {
623 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
624 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
625 } else {
626 throw bl;
627 }
628 }
629 }}, "java.awt.event.ActionEvent");
630 c$ = Clazz.p0p ();
631 Clazz.pu$h(self.c$);
632 c$ = Clazz.decorateAsClass (function () {
633 this.select = false;
634 Clazz.instantialize (this, arguments);
635 }, javax.swing.text.DefaultEditorKit, "PreviousWordAction", javax.swing.text.TextAction);
636 Clazz.makeConstructor (c$, 
637 function (a, b) {
638 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.PreviousWordAction, [a]);
639 this.select = b;
640 }, "~S,~B");
641 Clazz.overrideMethod (c$, "actionPerformed", 
642 function (a) {
643 var b = this.getTextComponent (a);
644 if (b != null) {
645 var c = b.getCaretPosition ();
646 var d = false;
647 try {
648 var e = javax.swing.text.Utilities.getParagraphElement (b, c);
649 c = javax.swing.text.Utilities.getPreviousWord (b, c);
650 if (c < e.getStartOffset ()) {
651 c = javax.swing.text.Utilities.getParagraphElement (b, c).getEndOffset () - 1;
652 }} catch (bl) {
653 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
654 if (c != 0) {
655 c = 0;
656 } else {
657 d = true;
658 }} else {
659 throw bl;
660 }
661 }
662 if (!d) {
663 if (this.select) {
664 b.moveCaretPosition (c);
665 } else {
666 b.setCaretPosition (c);
667 }} else {
668 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
669 }}}, "java.awt.event.ActionEvent");
670 c$ = Clazz.p0p ();
671 Clazz.pu$h(self.c$);
672 c$ = Clazz.decorateAsClass (function () {
673 this.select = false;
674 Clazz.instantialize (this, arguments);
675 }, javax.swing.text.DefaultEditorKit, "NextWordAction", javax.swing.text.TextAction);
676 Clazz.makeConstructor (c$, 
677 function (a, b) {
678 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.NextWordAction, [a]);
679 this.select = b;
680 }, "~S,~B");
681 Clazz.overrideMethod (c$, "actionPerformed", 
682 function (a) {
683 var b = this.getTextComponent (a);
684 if (b != null) {
685 var c = b.getCaretPosition ();
686 var d = false;
687 var e = c;
688 var f = javax.swing.text.Utilities.getParagraphElement (b, c);
689 try {
690 c = javax.swing.text.Utilities.getNextWord (b, c);
691 if (c >= f.getEndOffset () && e != f.getEndOffset () - 1) {
692 c = f.getEndOffset () - 1;
693 }} catch (bl) {
694 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
695 var g = b.getDocument ().getLength ();
696 if (c != g) {
697 if (e != f.getEndOffset () - 1) {
698 c = f.getEndOffset () - 1;
699 } else {
700 c = g;
701 }} else {
702 d = true;
703 }} else {
704 throw bl;
705 }
706 }
707 if (!d) {
708 if (this.select) {
709 b.moveCaretPosition (c);
710 } else {
711 b.setCaretPosition (c);
712 }} else {
713 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
714 }}}, "java.awt.event.ActionEvent");
715 c$ = Clazz.p0p ();
716 Clazz.pu$h(self.c$);
717 c$ = Clazz.decorateAsClass (function () {
718 this.select = false;
719 Clazz.instantialize (this, arguments);
720 }, javax.swing.text.DefaultEditorKit, "BeginLineAction", javax.swing.text.TextAction);
721 Clazz.makeConstructor (c$, 
722 function (a, b) {
723 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.BeginLineAction, [a]);
724 this.select = b;
725 }, "~S,~B");
726 Clazz.overrideMethod (c$, "actionPerformed", 
727 function (a) {
728 var b = this.getTextComponent (a);
729 if (b != null) {
730 try {
731 var c = b.getCaretPosition ();
732 var d = javax.swing.text.Utilities.getRowStart (b, c);
733 if (this.select) {
734 b.moveCaretPosition (d);
735 } else {
736 b.setCaretPosition (d);
737 }} catch (bl) {
738 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
739 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
740 } else {
741 throw bl;
742 }
743 }
744 }}, "java.awt.event.ActionEvent");
745 c$ = Clazz.p0p ();
746 Clazz.pu$h(self.c$);
747 c$ = Clazz.decorateAsClass (function () {
748 this.select = false;
749 Clazz.instantialize (this, arguments);
750 }, javax.swing.text.DefaultEditorKit, "EndLineAction", javax.swing.text.TextAction);
751 Clazz.makeConstructor (c$, 
752 function (a, b) {
753 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.EndLineAction, [a]);
754 this.select = b;
755 }, "~S,~B");
756 Clazz.overrideMethod (c$, "actionPerformed", 
757 function (a) {
758 var b = this.getTextComponent (a);
759 if (b != null) {
760 try {
761 var c = b.getCaretPosition ();
762 var d = javax.swing.text.Utilities.getRowEnd (b, c);
763 if (this.select) {
764 b.moveCaretPosition (d);
765 } else {
766 b.setCaretPosition (d);
767 }} catch (bl) {
768 if (Clazz.exceptionOf (bl, javax.swing.text.BadLocationException)) {
769 javax.swing.UIManager.getLookAndFeel ().provideErrorFeedback (b);
770 } else {
771 throw bl;
772 }
773 }
774 }}, "java.awt.event.ActionEvent");
775 c$ = Clazz.p0p ();
776 Clazz.pu$h(self.c$);
777 c$ = Clazz.decorateAsClass (function () {
778 this.select = false;
779 Clazz.instantialize (this, arguments);
780 }, javax.swing.text.DefaultEditorKit, "BeginParagraphAction", javax.swing.text.TextAction);
781 Clazz.makeConstructor (c$, 
782 function (a, b) {
783 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.BeginParagraphAction, [a]);
784 this.select = b;
785 }, "~S,~B");
786 Clazz.overrideMethod (c$, "actionPerformed", 
787 function (a) {
788 var b = this.getTextComponent (a);
789 if (b != null) {
790 var c = b.getCaretPosition ();
791 var d = javax.swing.text.Utilities.getParagraphElement (b, c);
792 c = d.getStartOffset ();
793 if (this.select) {
794 b.moveCaretPosition (c);
795 } else {
796 b.setCaretPosition (c);
797 }}}, "java.awt.event.ActionEvent");
798 c$ = Clazz.p0p ();
799 Clazz.pu$h(self.c$);
800 c$ = Clazz.decorateAsClass (function () {
801 this.select = false;
802 Clazz.instantialize (this, arguments);
803 }, javax.swing.text.DefaultEditorKit, "EndParagraphAction", javax.swing.text.TextAction);
804 Clazz.makeConstructor (c$, 
805 function (a, b) {
806 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.EndParagraphAction, [a]);
807 this.select = b;
808 }, "~S,~B");
809 Clazz.overrideMethod (c$, "actionPerformed", 
810 function (a) {
811 var b = this.getTextComponent (a);
812 if (b != null) {
813 var c = b.getCaretPosition ();
814 var d = javax.swing.text.Utilities.getParagraphElement (b, c);
815 c = Math.min (b.getDocument ().getLength (), d.getEndOffset ());
816 if (this.select) {
817 b.moveCaretPosition (c);
818 } else {
819 b.setCaretPosition (c);
820 }}}, "java.awt.event.ActionEvent");
821 c$ = Clazz.p0p ();
822 Clazz.pu$h(self.c$);
823 c$ = Clazz.decorateAsClass (function () {
824 this.select = false;
825 Clazz.instantialize (this, arguments);
826 }, javax.swing.text.DefaultEditorKit, "BeginAction", javax.swing.text.TextAction);
827 Clazz.makeConstructor (c$, 
828 function (a, b) {
829 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.BeginAction, [a]);
830 this.select = b;
831 }, "~S,~B");
832 Clazz.overrideMethod (c$, "actionPerformed", 
833 function (a) {
834 var b = this.getTextComponent (a);
835 if (b != null) {
836 if (this.select) {
837 b.moveCaretPosition (0);
838 } else {
839 b.setCaretPosition (0);
840 }}}, "java.awt.event.ActionEvent");
841 c$ = Clazz.p0p ();
842 Clazz.pu$h(self.c$);
843 c$ = Clazz.decorateAsClass (function () {
844 this.select = false;
845 Clazz.instantialize (this, arguments);
846 }, javax.swing.text.DefaultEditorKit, "EndAction", javax.swing.text.TextAction);
847 Clazz.makeConstructor (c$, 
848 function (a, b) {
849 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.EndAction, [a]);
850 this.select = b;
851 }, "~S,~B");
852 Clazz.overrideMethod (c$, "actionPerformed", 
853 function (a) {
854 var b = this.getTextComponent (a);
855 if (b != null) {
856 var c = b.getDocument ();
857 var d = c.getLength ();
858 if (this.select) {
859 b.moveCaretPosition (d);
860 } else {
861 b.setCaretPosition (d);
862 }}}, "java.awt.event.ActionEvent");
863 c$ = Clazz.p0p ();
864 Clazz.pu$h(self.c$);
865 c$ = Clazz.decorateAsClass (function () {
866 this.start = null;
867 this.end = null;
868 Clazz.instantialize (this, arguments);
869 }, javax.swing.text.DefaultEditorKit, "SelectWordAction", javax.swing.text.TextAction);
870 Clazz.makeConstructor (c$, 
871 function () {
872 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.SelectWordAction, ["select-word"]);
873 this.start =  new javax.swing.text.DefaultEditorKit.BeginWordAction ("pigdog", false);
874 this.end =  new javax.swing.text.DefaultEditorKit.EndWordAction ("pigdog", true);
875 });
876 Clazz.defineMethod (c$, "actionPerformed", 
877 function (a) {
878 this.start.actionPerformed (a);
879 this.end.actionPerformed (a);
880 }, "java.awt.event.ActionEvent");
881 c$ = Clazz.p0p ();
882 Clazz.pu$h(self.c$);
883 c$ = Clazz.decorateAsClass (function () {
884 this.start = null;
885 this.end = null;
886 Clazz.instantialize (this, arguments);
887 }, javax.swing.text.DefaultEditorKit, "SelectLineAction", javax.swing.text.TextAction);
888 Clazz.makeConstructor (c$, 
889 function () {
890 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.SelectLineAction, ["select-line"]);
891 this.start =  new javax.swing.text.DefaultEditorKit.BeginLineAction ("pigdog", false);
892 this.end =  new javax.swing.text.DefaultEditorKit.EndLineAction ("pigdog", true);
893 });
894 Clazz.defineMethod (c$, "actionPerformed", 
895 function (a) {
896 this.start.actionPerformed (a);
897 this.end.actionPerformed (a);
898 }, "java.awt.event.ActionEvent");
899 c$ = Clazz.p0p ();
900 Clazz.pu$h(self.c$);
901 c$ = Clazz.decorateAsClass (function () {
902 this.start = null;
903 this.end = null;
904 Clazz.instantialize (this, arguments);
905 }, javax.swing.text.DefaultEditorKit, "SelectParagraphAction", javax.swing.text.TextAction);
906 Clazz.makeConstructor (c$, 
907 function () {
908 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.SelectParagraphAction, ["select-paragraph"]);
909 this.start =  new javax.swing.text.DefaultEditorKit.BeginParagraphAction ("pigdog", false);
910 this.end =  new javax.swing.text.DefaultEditorKit.EndParagraphAction ("pigdog", true);
911 });
912 Clazz.defineMethod (c$, "actionPerformed", 
913 function (a) {
914 this.start.actionPerformed (a);
915 this.end.actionPerformed (a);
916 }, "java.awt.event.ActionEvent");
917 c$ = Clazz.p0p ();
918 Clazz.pu$h(self.c$);
919 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "SelectAllAction", javax.swing.text.TextAction);
920 Clazz.makeConstructor (c$, 
921 function () {
922 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.SelectAllAction, ["select-all"]);
923 });
924 Clazz.overrideMethod (c$, "actionPerformed", 
925 function (a) {
926 var b = this.getTextComponent (a);
927 if (b != null) {
928 var c = b.getDocument ();
929 b.setCaretPosition (0);
930 b.moveCaretPosition (c.getLength ());
931 }}, "java.awt.event.ActionEvent");
932 c$ = Clazz.p0p ();
933 Clazz.pu$h(self.c$);
934 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "UnselectAction", javax.swing.text.TextAction);
935 Clazz.makeConstructor (c$, 
936 function () {
937 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.UnselectAction, ["unselect"]);
938 });
939 Clazz.overrideMethod (c$, "actionPerformed", 
940 function (a) {
941 var b = this.getTextComponent (a);
942 if (b != null) {
943 b.setCaretPosition (b.getCaretPosition ());
944 }}, "java.awt.event.ActionEvent");
945 c$ = Clazz.p0p ();
946 Clazz.pu$h(self.c$);
947 c$ = Clazz.declareType (javax.swing.text.DefaultEditorKit, "ToggleComponentOrientationAction", javax.swing.text.TextAction);
948 Clazz.makeConstructor (c$, 
949 function () {
950 Clazz.superConstructor (this, javax.swing.text.DefaultEditorKit.ToggleComponentOrientationAction, ["toggle-componentOrientation"]);
951 });
952 Clazz.overrideMethod (c$, "actionPerformed", 
953 function (a) {
954 var b = this.getTextComponent (a);
955 if (b != null) {
956 var c = b.getComponentOrientation ();
957 var d;
958 if (c === java.awt.ComponentOrientation.RIGHT_TO_LEFT) d = java.awt.ComponentOrientation.LEFT_TO_RIGHT;
959  else d = java.awt.ComponentOrientation.RIGHT_TO_LEFT;
960 b.setComponentOrientation (d);
961 b.repaint ();
962 }}, "java.awt.event.ActionEvent");
963 c$ = Clazz.p0p ();
964 Clazz.defineStatics (c$,
965 "EndOfLineStringProperty", "__EndOfLine__",
966 "insertContentAction", "insert-content",
967 "insertBreakAction", "insert-break",
968 "insertTabAction", "insert-tab",
969 "deletePrevCharAction", "delete-previous",
970 "deleteNextCharAction", "delete-next",
971 "deleteNextWordAction", "delete-next-word",
972 "deletePrevWordAction", "delete-previous-word",
973 "readOnlyAction", "set-read-only",
974 "writableAction", "set-writable",
975 "cutAction", "cut-to-clipboard",
976 "copyAction", "copy-to-clipboard",
977 "pasteAction", "paste-from-clipboard",
978 "beepAction", "beep",
979 "pageUpAction", "page-up",
980 "pageDownAction", "page-down",
981 "selectionPageUpAction", "selection-page-up",
982 "selectionPageDownAction", "selection-page-down",
983 "selectionPageLeftAction", "selection-page-left",
984 "selectionPageRightAction", "selection-page-right",
985 "forwardAction", "caret-forward",
986 "backwardAction", "caret-backward",
987 "selectionForwardAction", "selection-forward",
988 "selectionBackwardAction", "selection-backward",
989 "upAction", "caret-up",
990 "downAction", "caret-down",
991 "selectionUpAction", "selection-up",
992 "selectionDownAction", "selection-down",
993 "beginWordAction", "caret-begin-word",
994 "endWordAction", "caret-end-word",
995 "selectionBeginWordAction", "selection-begin-word",
996 "selectionEndWordAction", "selection-end-word",
997 "previousWordAction", "caret-previous-word",
998 "nextWordAction", "caret-next-word",
999 "selectionPreviousWordAction", "selection-previous-word",
1000 "selectionNextWordAction", "selection-next-word",
1001 "beginLineAction", "caret-begin-line",
1002 "endLineAction", "caret-end-line",
1003 "selectionBeginLineAction", "selection-begin-line",
1004 "selectionEndLineAction", "selection-end-line",
1005 "beginParagraphAction", "caret-begin-paragraph",
1006 "endParagraphAction", "caret-end-paragraph",
1007 "selectionBeginParagraphAction", "selection-begin-paragraph",
1008 "selectionEndParagraphAction", "selection-end-paragraph",
1009 "beginAction", "caret-begin",
1010 "endAction", "caret-end",
1011 "selectionBeginAction", "selection-begin",
1012 "selectionEndAction", "selection-end",
1013 "selectWordAction", "select-word",
1014 "selectLineAction", "select-line",
1015 "selectParagraphAction", "select-paragraph",
1016 "selectAllAction", "select-all",
1017 "unselectAction", "unselect",
1018 "toggleComponentOrientationAction", "toggle-componentOrientation",
1019 "defaultKeyTypedAction", "default-typed");
1020 c$.defaultActions = c$.prototype.defaultActions =  Clazz.newArray (-1, [ new javax.swing.text.DefaultEditorKit.InsertContentAction (),  new javax.swing.text.DefaultEditorKit.DeletePrevCharAction (),  new javax.swing.text.DefaultEditorKit.DeleteNextCharAction (),  new javax.swing.text.DefaultEditorKit.ReadOnlyAction (),  new javax.swing.text.DefaultEditorKit.WritableAction (),  new javax.swing.text.DefaultEditorKit.CutAction (),  new javax.swing.text.DefaultEditorKit.CopyAction (),  new javax.swing.text.DefaultEditorKit.PasteAction (),  new javax.swing.text.DefaultEditorKit.VerticalPageAction ("page-up", -1, false),  new javax.swing.text.DefaultEditorKit.VerticalPageAction ("page-down", 1, false),  new javax.swing.text.DefaultEditorKit.VerticalPageAction ("selection-page-up", -1, true),  new javax.swing.text.DefaultEditorKit.VerticalPageAction ("selection-page-down", 1, true),  new javax.swing.text.DefaultEditorKit.PageAction ("selection-page-left", true, true),  new javax.swing.text.DefaultEditorKit.PageAction ("selection-page-right", false, true),  new javax.swing.text.DefaultEditorKit.InsertBreakAction (),  new javax.swing.text.DefaultEditorKit.BeepAction (),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("caret-forward", false, 3),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("caret-backward", false, 7),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("selection-forward", true, 3),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("selection-backward", true, 7),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("caret-up", false, 1),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("caret-down", false, 5),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("selection-up", true, 1),  new javax.swing.text.DefaultEditorKit.NextVisualPositionAction ("selection-down", true, 5),  new javax.swing.text.DefaultEditorKit.BeginWordAction ("caret-begin-word", false),  new javax.swing.text.DefaultEditorKit.EndWordAction ("caret-end-word", false),  new javax.swing.text.DefaultEditorKit.BeginWordAction ("selection-begin-word", true),  new javax.swing.text.DefaultEditorKit.EndWordAction ("selection-end-word", true),  new javax.swing.text.DefaultEditorKit.PreviousWordAction ("caret-previous-word", false),  new javax.swing.text.DefaultEditorKit.NextWordAction ("caret-next-word", false),  new javax.swing.text.DefaultEditorKit.PreviousWordAction ("selection-previous-word", true),  new javax.swing.text.DefaultEditorKit.NextWordAction ("selection-next-word", true),  new javax.swing.text.DefaultEditorKit.BeginLineAction ("caret-begin-line", false),  new javax.swing.text.DefaultEditorKit.EndLineAction ("caret-end-line", false),  new javax.swing.text.DefaultEditorKit.BeginLineAction ("selection-begin-line", true),  new javax.swing.text.DefaultEditorKit.EndLineAction ("selection-end-line", true),  new javax.swing.text.DefaultEditorKit.BeginParagraphAction ("caret-begin-paragraph", false),  new javax.swing.text.DefaultEditorKit.EndParagraphAction ("caret-end-paragraph", false),  new javax.swing.text.DefaultEditorKit.BeginParagraphAction ("selection-begin-paragraph", true),  new javax.swing.text.DefaultEditorKit.EndParagraphAction ("selection-end-paragraph", true),  new javax.swing.text.DefaultEditorKit.BeginAction ("caret-begin", false),  new javax.swing.text.DefaultEditorKit.EndAction ("caret-end", false),  new javax.swing.text.DefaultEditorKit.BeginAction ("selection-begin", true),  new javax.swing.text.DefaultEditorKit.EndAction ("selection-end", true),  new javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction (),  new javax.swing.text.DefaultEditorKit.InsertTabAction (),  new javax.swing.text.DefaultEditorKit.SelectWordAction (),  new javax.swing.text.DefaultEditorKit.SelectLineAction (),  new javax.swing.text.DefaultEditorKit.SelectParagraphAction (),  new javax.swing.text.DefaultEditorKit.SelectAllAction (),  new javax.swing.text.DefaultEditorKit.UnselectAction (),  new javax.swing.text.DefaultEditorKit.ToggleComponentOrientationAction ()]);
1021 });