X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fswingjs%2Fplaf%2FJSPopupMenuSeparatorUI.js;fp=site%2Fj2s%2Fswingjs%2Fplaf%2FJSPopupMenuSeparatorUI.js;h=0c63e7c51b099041c5463c491a9f0911000818a4;hp=0000000000000000000000000000000000000000;hb=e34e405ef01487083cc29d8b9a2f96143cbfe6a3;hpb=36d803e4a1f98728e91e80de5fa0b95e0cadb0d4 diff --git a/site/j2s/swingjs/plaf/JSPopupMenuSeparatorUI.js b/site/j2s/swingjs/plaf/JSPopupMenuSeparatorUI.js new file mode 100644 index 0000000..0c63e7c --- /dev/null +++ b/site/j2s/swingjs/plaf/JSPopupMenuSeparatorUI.js @@ -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 () { +}); +});