X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fswingjs%2Fplaf%2FJSToggleButtonUI.js;fp=site%2Fj2s%2Fswingjs%2Fplaf%2FJSToggleButtonUI.js;h=a7848ff23b056f312428aa872a882eeab5608093;hp=3f43733d2c60c427943d5a1e6de6a0f945df86a1;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/swingjs/plaf/JSToggleButtonUI.js b/site/j2s/swingjs/plaf/JSToggleButtonUI.js index 3f43733..a7848ff 100644 --- a/site/j2s/swingjs/plaf/JSToggleButtonUI.js +++ b/site/j2s/swingjs/plaf/JSToggleButtonUI.js @@ -1,18 +1,18 @@ -Clazz.declarePackage ("swingjs.plaf"); -Clazz.load (["swingjs.plaf.JSButtonUI"], "swingjs.plaf.JSToggleButtonUI", ["swingjs.api.DOMNode"], function () { -c$ = Clazz.decorateAsClass (function () { -this.isDomChecked = false; -Clazz.instantialize (this, arguments); -}, swingjs.plaf, "JSToggleButtonUI", swingjs.plaf.JSButtonUI); -Clazz.overrideMethod (c$, "verifyButtonClick", -function (isRelease) { -var checked = ((swingjs.api.DOMNode.getAttr (this.domBtn, "checked")).booleanValue () === true); -if (isRelease && this.isDomChecked == checked) return false; -this.isDomChecked = checked; -return true; -}, "~B"); -Clazz.overrideMethod (c$, "getPropertyPrefix", -function () { -return "ToggleButton."; -}); -}); +Clazz.declarePackage ("swingjs.plaf"); +Clazz.load (["swingjs.plaf.JSButtonUI"], "swingjs.plaf.JSToggleButtonUI", ["swingjs.api.DOMNode"], function () { +c$ = Clazz.decorateAsClass (function () { +this.isDomChecked = false; +Clazz.instantialize (this, arguments); +}, swingjs.plaf, "JSToggleButtonUI", swingjs.plaf.JSButtonUI); +Clazz.overrideMethod (c$, "verifyButtonClick", +function (isRelease) { +var checked = ((swingjs.api.DOMNode.getAttr (this.domBtn, "checked")).booleanValue () === true); +if (isRelease && this.isDomChecked == checked) return false; +this.isDomChecked = checked; +return true; +}, "~B"); +Clazz.overrideMethod (c$, "getPropertyPrefix", +function () { +return "ToggleButton."; +}); +});