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