JAL-1807 test
[jalviewjs.git] / bin / javajs / swing / AbstractButton.js
index 7a53af7..f97cb2f 100644 (file)
@@ -1,82 +1,82 @@
-Clazz.declarePackage ("javajs.swing");\r
-Clazz.load (["javajs.api.SC", "javajs.swing.JComponent"], "javajs.swing.AbstractButton", null, function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.itemListener = null;\r
-this.applet = null;\r
-this.htmlName = null;\r
-this.selected = false;\r
-this.popupMenu = null;\r
-this.icon = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javajs.swing, "AbstractButton", javajs.swing.JComponent, javajs.api.SC);\r
-Clazz.makeConstructor (c$, \r
-function (type) {\r
-Clazz.superConstructor (this, javajs.swing.AbstractButton, [type]);\r
-this.enabled = true;\r
-}, "~S");\r
-Clazz.overrideMethod (c$, "setSelected", \r
-function (selected) {\r
-this.selected = selected;\r
-{\r
-SwingController.setSelected(this);\r
-}}, "~B");\r
-Clazz.overrideMethod (c$, "isSelected", \r
-function () {\r
-return this.selected;\r
-});\r
-Clazz.overrideMethod (c$, "addItemListener", \r
-function (listener) {\r
-this.itemListener = listener;\r
-}, "~O");\r
-Clazz.overrideMethod (c$, "getIcon", \r
-function () {\r
-return this.icon;\r
-});\r
-Clazz.overrideMethod (c$, "setIcon", \r
-function (icon) {\r
-this.icon = icon;\r
-}, "~O");\r
-Clazz.overrideMethod (c$, "init", \r
-function (text, icon, actionCommand, popupMenu) {\r
-this.text = text;\r
-this.icon = icon;\r
-this.actionCommand = actionCommand;\r
-this.popupMenu = popupMenu;\r
-{\r
-SwingController.initMenuItem(this);\r
-}}, "~S,~O,~S,javajs.api.SC");\r
-Clazz.defineMethod (c$, "getTopPopupMenu", \r
-function () {\r
-return this.popupMenu;\r
-});\r
-Clazz.defineMethod (c$, "add", \r
-function (item) {\r
-this.addComponent (item);\r
-}, "javajs.api.SC");\r
-Clazz.overrideMethod (c$, "insert", \r
-function (subMenu, index) {\r
-this.insertComponent (subMenu, index);\r
-}, "javajs.api.SC,~N");\r
-Clazz.overrideMethod (c$, "getPopupMenu", \r
-function () {\r
-return null;\r
-});\r
-Clazz.defineMethod (c$, "getMenuHTML", \r
-function () {\r
-var label = (this.icon != null ? this.icon : this.text != null ? this.text : null);\r
-var s = (label == null ? "" : "<li><a>" + label + "</a>" + this.htmlMenuOpener ("ul"));\r
-var n = this.getComponentCount ();\r
-if (n > 0) for (var i = 0; i < n; i++) s += this.getComponent (i).toHTML ();\r
-\r
-if (label != null) s += "</ul></li>";\r
-return s;\r
-});\r
-Clazz.defineMethod (c$, "htmlMenuOpener", \r
-function (type) {\r
-return "<" + type + " id=\"" + this.id + "\"" + (this.enabled ? "" : this.getHtmlDisabled ()) + ">";\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getHtmlDisabled", \r
-function () {\r
-return " disabled=\"disabled\"";\r
-});\r
-});\r
+Clazz.declarePackage ("javajs.swing");
+Clazz.load (["javajs.api.SC", "javajs.swing.JComponent"], "javajs.swing.AbstractButton", null, function () {
+c$ = Clazz.decorateAsClass (function () {
+this.itemListener = null;
+this.applet = null;
+this.htmlName = null;
+this.selected = false;
+this.popupMenu = null;
+this.icon = null;
+Clazz.instantialize (this, arguments);
+}, javajs.swing, "AbstractButton", javajs.swing.JComponent, javajs.api.SC);
+Clazz.makeConstructor (c$, 
+function (type) {
+Clazz.superConstructor (this, javajs.swing.AbstractButton, [type]);
+this.enabled = true;
+}, "~S");
+Clazz.overrideMethod (c$, "setSelected", 
+function (selected) {
+this.selected = selected;
+{
+SwingController.setSelected(this);
+}}, "~B");
+Clazz.overrideMethod (c$, "isSelected", 
+function () {
+return this.selected;
+});
+Clazz.overrideMethod (c$, "addItemListener", 
+function (listener) {
+this.itemListener = listener;
+}, "~O");
+Clazz.overrideMethod (c$, "getIcon", 
+function () {
+return this.icon;
+});
+Clazz.overrideMethod (c$, "setIcon", 
+function (icon) {
+this.icon = icon;
+}, "~O");
+Clazz.overrideMethod (c$, "init", 
+function (text, icon, actionCommand, popupMenu) {
+this.text = text;
+this.icon = icon;
+this.actionCommand = actionCommand;
+this.popupMenu = popupMenu;
+{
+SwingController.initMenuItem(this);
+}}, "~S,~O,~S,javajs.api.SC");
+Clazz.defineMethod (c$, "getTopPopupMenu", 
+function () {
+return this.popupMenu;
+});
+Clazz.defineMethod (c$, "add", 
+function (item) {
+this.addComponent (item);
+}, "javajs.api.SC");
+Clazz.overrideMethod (c$, "insert", 
+function (subMenu, index) {
+this.insertComponent (subMenu, index);
+}, "javajs.api.SC,~N");
+Clazz.overrideMethod (c$, "getPopupMenu", 
+function () {
+return null;
+});
+Clazz.defineMethod (c$, "getMenuHTML", 
+function () {
+var label = (this.icon != null ? this.icon : this.text != null ? this.text : null);
+var s = (label == null ? "" : "<li><a>" + label + "</a>" + this.htmlMenuOpener ("ul"));
+var n = this.getComponentCount ();
+if (n > 0) for (var i = 0; i < n; i++) s += this.getComponent (i).toHTML ();
+
+if (label != null) s += "</ul></li>";
+return s;
+});
+Clazz.defineMethod (c$, "htmlMenuOpener", 
+function (type) {
+return "<" + type + " id=\"" + this.id + "\"" + (this.enabled ? "" : this.getHtmlDisabled ()) + ">";
+}, "~S");
+Clazz.defineMethod (c$, "getHtmlDisabled", 
+function () {
+return " disabled=\"disabled\"";
+});
+});