1 Clazz.declarePackage ("swingjs.plaf");
2 Clazz.load (["swingjs.plaf.JSComponentUI"], "swingjs.plaf.JSPanelUI", ["java.awt.Dimension", "javax.swing.LookAndFeel"], function () {
3 c$ = Clazz.declareType (swingjs.plaf, "JSPanelUI", swingjs.plaf.JSComponentUI);
4 Clazz.makeConstructor (c$,
6 Clazz.superConstructor (this, swingjs.plaf.JSPanelUI, []);
7 this.isContainer = true;
10 Clazz.overrideMethod (c$, "getDOMObject",
12 if (this.domNode == null) this.domNode = this.createDOMObject ("label", 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, "Panel.background", "Panel.foreground", "Panel.font");
27 Clazz.overrideMethod (c$, "uninstallJSUI",