1 Clazz.declarePackage ("javax.swing.text");
2 Clazz.load (["javax.swing.AbstractAction"], "javax.swing.text.TextAction", ["java.util.Hashtable", "javax.swing.text.JTextComponent"], function () {
3 c$ = Clazz.declareType (javax.swing.text, "TextAction", javax.swing.AbstractAction);
4 Clazz.defineMethod (c$, "getTextComponent",
7 var o = e.getSource ();
8 if (Clazz.instanceOf (o, javax.swing.text.JTextComponent)) {
10 }}return this.getFocusedComponent ();
11 }, "java.awt.event.ActionEvent");
12 c$.augmentList = Clazz.defineMethod (c$, "augmentList",
13 function (list1, list2) {
14 var h = new java.util.Hashtable ();
15 if (list1 != null) for (var i = 0; i < list1.length; i++) {
17 var value = a.getValue ("Name");
18 h.put ((value != null ? value : ""), a);
20 for (var i = 0; i < list2.length; i++) {
22 var value = a.getValue ("Name");
23 h.put ((value != null ? value : ""), a);
25 var actions = new Array (h.size ());
27 for (var e = h.elements (); e.hasMoreElements (); ) {
28 actions[index++] = e.nextElement ();
32 Clazz.defineMethod (c$, "getFocusedComponent",
34 return javax.swing.text.JTextComponent.getFocusedComponent ();