JAL-1807 Bob
[jalviewjs.git] / site / j2s / swingjs / plaf / JSPopupMenuUI.js
1 Clazz.declarePackage ("swingjs.plaf");
2 Clazz.load (["swingjs.plaf.JSMenuUI"], "swingjs.plaf.JSPopupMenuUI", ["java.awt.Dimension", "javax.swing.LookAndFeel"], function () {
3 c$ = Clazz.declareType (swingjs.plaf, "JSPopupMenuUI", swingjs.plaf.JSMenuUI);
4 Clazz.makeConstructor (c$, 
5 function () {
6 Clazz.superConstructor (this, swingjs.plaf.JSPopupMenuUI, []);
7 this.isContainer = true;
8 this.setDoc ();
9 });
10 Clazz.overrideMethod (c$, "getDOMObject", 
11 function () {
12 if (this.domNode == null) this.domNode = this.createDOMObject ("select", this.id, []);
13 return this.domNode;
14 });
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", 
20 function (c) {
21 return null;
22 }, "javax.swing.JComponent");
23 Clazz.overrideMethod (c$, "installJSUI", 
24 function () {
25 javax.swing.LookAndFeel.installColorsAndFont (this.c, "PopupMenu.background", "PopupMenu.foreground", "PopupMenu.font");
26 });
27 Clazz.overrideMethod (c$, "uninstallJSUI", 
28 function () {
29 });
30 });