X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fswingjs%2Fplaf%2FJSComboBoxUI.js;fp=site%2Fswingjs%2Fj2s%2Fswingjs%2Fplaf%2FJSComboBoxUI.js;h=03e0ac51f5aebe01be6f4a6c43a22c787b3d3ce3;hp=0b10d27fdc10a90e1e772187a07cad4f90ce64c7;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/swingjs/plaf/JSComboBoxUI.js b/site/swingjs/j2s/swingjs/plaf/JSComboBoxUI.js index 0b10d27..03e0ac5 100644 --- a/site/swingjs/j2s/swingjs/plaf/JSComboBoxUI.js +++ b/site/swingjs/j2s/swingjs/plaf/JSComboBoxUI.js @@ -1,30 +1,30 @@ -Clazz.declarePackage ("swingjs.plaf"); -Clazz.load (["swingjs.plaf.JSComponentUI"], "swingjs.plaf.JSComboBoxUI", ["java.awt.Dimension", "javax.swing.LookAndFeel"], function () { -c$ = Clazz.declareType (swingjs.plaf, "JSComboBoxUI", swingjs.plaf.JSComponentUI); -Clazz.makeConstructor (c$, -function () { -Clazz.superConstructor (this, swingjs.plaf.JSComboBoxUI, []); -this.isContainer = true; -this.setDoc (); -}); -Clazz.overrideMethod (c$, "getDOMObject", -function () { -if (this.domNode == null) this.domNode = this.createDOMObject ("select", 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, "ComboBox.background", "ComboBox.foreground", "ComboBox.font"); -}); -Clazz.overrideMethod (c$, "uninstallJSUI", -function () { -}); -}); +Clazz.declarePackage ("swingjs.plaf"); +Clazz.load (["swingjs.plaf.JSComponentUI"], "swingjs.plaf.JSComboBoxUI", ["java.awt.Dimension", "javax.swing.LookAndFeel"], function () { +c$ = Clazz.declareType (swingjs.plaf, "JSComboBoxUI", swingjs.plaf.JSComponentUI); +Clazz.makeConstructor (c$, +function () { +Clazz.superConstructor (this, swingjs.plaf.JSComboBoxUI, []); +this.isContainer = true; +this.setDoc (); +}); +Clazz.overrideMethod (c$, "getDOMObject", +function () { +if (this.domNode == null) this.domNode = this.createDOMObject ("select", 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, "ComboBox.background", "ComboBox.foreground", "ComboBox.font"); +}); +Clazz.overrideMethod (c$, "uninstallJSUI", +function () { +}); +});