JAL-1807 Bob
[jalviewjs.git] / site / j2s / swingjs / plaf / JSPopupMenuSeparatorUI.js
diff --git a/site/j2s/swingjs/plaf/JSPopupMenuSeparatorUI.js b/site/j2s/swingjs/plaf/JSPopupMenuSeparatorUI.js
new file mode 100644 (file)
index 0000000..0c63e7c
--- /dev/null
@@ -0,0 +1,16 @@
+Clazz.declarePackage ("swingjs.plaf");
+Clazz.load (["swingjs.plaf.JSSeparatorUI"], "swingjs.plaf.JSPopupMenuSeparatorUI", ["swingjs.api.DOMNode"], function () {
+c$ = Clazz.declareType (swingjs.plaf, "JSPopupMenuSeparatorUI", swingjs.plaf.JSSeparatorUI);
+Clazz.overrideMethod (c$, "getDOMObject", 
+function () {
+if (this.domNode == null) this.textNode = this.domNode = this.createDOMObject ("label", this.id, []);
+swingjs.plaf.JSComponentUI.vCenter (this.domNode, 10);
+return this.setCssFont (swingjs.api.DOMNode.setAttr (this.domNode, "innerHTML", (this.c).getText ()), this.c.getFont ());
+});
+Clazz.overrideMethod (c$, "installJSUI", 
+function () {
+});
+Clazz.overrideMethod (c$, "uninstallJSUI", 
+function () {
+});
+});