X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fswingjs%2Fplaf%2FJSMenuBarUI.js;fp=site%2Fj2s%2Fswingjs%2Fplaf%2FJSMenuBarUI.js;h=b4ec00a9c5fdffda1cdc4a98f9ee2d803f9c9d2b;hp=adb04b3a1f65054bb4ce154a4bffa8d3631a02a9;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/swingjs/plaf/JSMenuBarUI.js b/site/j2s/swingjs/plaf/JSMenuBarUI.js index adb04b3..b4ec00a 100644 --- a/site/j2s/swingjs/plaf/JSMenuBarUI.js +++ b/site/j2s/swingjs/plaf/JSMenuBarUI.js @@ -1,30 +1,30 @@ -Clazz.declarePackage ("swingjs.plaf"); -Clazz.load (["swingjs.plaf.JSPanelUI"], "swingjs.plaf.JSMenuBarUI", ["java.awt.Dimension", "javax.swing.LookAndFeel"], function () { -c$ = Clazz.declareType (swingjs.plaf, "JSMenuBarUI", swingjs.plaf.JSPanelUI); -Clazz.makeConstructor (c$, -function () { -Clazz.superConstructor (this, swingjs.plaf.JSMenuBarUI, []); -this.isContainer = true; -this.setDoc (); -}); -Clazz.overrideMethod (c$, "getDOMObject", -function () { -if (this.domNode == null) this.domNode = this.createDOMObject ("div", this.id, []); -return this.domNode; -}); -Clazz.overrideMethod (c$, "setHTMLSize", -function (obj, addCSS) { -return new java.awt.Dimension (this.c.getWidth (), this.c.getHeight ()); -}, "swingjs.api.DOMNode,~B"); -Clazz.defineMethod (c$, "getPreferredSize", -function (c) { -return null; -}, "javax.swing.JComponent"); -Clazz.overrideMethod (c$, "installJSUI", -function () { -javax.swing.LookAndFeel.installColorsAndFont (this.c, "MenuBar.background", "MenuBar.foreground", "MenuBar.font"); -}); -Clazz.overrideMethod (c$, "uninstallJSUI", -function () { -}); -}); +Clazz.declarePackage ("swingjs.plaf"); +Clazz.load (["swingjs.plaf.JSPanelUI"], "swingjs.plaf.JSMenuBarUI", ["java.awt.Dimension", "javax.swing.LookAndFeel"], function () { +c$ = Clazz.declareType (swingjs.plaf, "JSMenuBarUI", swingjs.plaf.JSPanelUI); +Clazz.makeConstructor (c$, +function () { +Clazz.superConstructor (this, swingjs.plaf.JSMenuBarUI, []); +this.isContainer = true; +this.setDoc (); +}); +Clazz.overrideMethod (c$, "getDOMObject", +function () { +if (this.domNode == null) this.domNode = this.createDOMObject ("div", this.id, []); +return this.domNode; +}); +Clazz.overrideMethod (c$, "setHTMLSize", +function (obj, addCSS) { +return new java.awt.Dimension (this.c.getWidth (), this.c.getHeight ()); +}, "swingjs.api.DOMNode,~B"); +Clazz.defineMethod (c$, "getPreferredSize", +function (c) { +return null; +}, "javax.swing.JComponent"); +Clazz.overrideMethod (c$, "installJSUI", +function () { +javax.swing.LookAndFeel.installColorsAndFont (this.c, "MenuBar.background", "MenuBar.foreground", "MenuBar.font"); +}); +Clazz.overrideMethod (c$, "uninstallJSUI", +function () { +}); +});