1 Clazz.declarePackage ("swingjs.plaf");
2 Clazz.load (["swingjs.plaf.JSComponentUI"], "swingjs.plaf.JSMenuUI", ["java.awt.Dimension", "javax.swing.LookAndFeel"], function () {
3 c$ = Clazz.declareType (swingjs.plaf, "JSMenuUI", swingjs.plaf.JSComponentUI);
4 Clazz.makeConstructor (c$,
6 Clazz.superConstructor (this, swingjs.plaf.JSMenuUI, []);
7 this.isContainer = true;
10 Clazz.overrideMethod (c$, "getDOMObject",
12 if (this.domNode == null) this.domNode = this.createDOMObject ("select", this.id, []);
15 Clazz.overrideMethod (c$, "setHTMLSize",
16 function (obj, addCSS) {
17 return new java.awt.Dimension (this.c.getWidth (), this.c.getHeight ());
18 }, "swingjs.api.DOMNode,~B");
19 Clazz.defineMethod (c$, "getPreferredSize",
22 }, "javax.swing.JComponent");
23 Clazz.overrideMethod (c$, "installJSUI",
25 javax.swing.LookAndFeel.installColorsAndFont (this.c, "Menu.background", "Menu.foreground", "Menu.font");
27 Clazz.overrideMethod (c$, "uninstallJSUI",