UNPKG

biojs-vis-pdbviewer

Version:

A BioJS 2.0 component to view protein structures

33 lines (32 loc) 1.08 kB
Clazz.declarePackage ("JSV.js2d"); Clazz.load (["JSV.popup.JSVGenericPopup"], "JSV.js2d.JsPopup", ["JSV.popup.JSVPopupResourceBundle", "J.popup.JSSwingPopupHelper"], function () { c$ = Clazz.declareType (JSV.js2d, "JsPopup", JSV.popup.JSVGenericPopup); Clazz.makeConstructor (c$, function () { Clazz.superConstructor (this, JSV.js2d.JsPopup, []); this.helper = new J.popup.JSSwingPopupHelper (this); }); Clazz.overrideMethod (c$, "jpiInitialize", function (viewer, menu) { var bundle = new JSV.popup.JSVPopupResourceBundle (); this.initialize (viewer, bundle, menu); }, "javajs.api.PlatformViewer,~S"); Clazz.overrideMethod (c$, "menuShowPopup", function (popup, x, y) { try { (popup).show (this.isTainted ? this.vwr.getApplet () : null, x, y); } catch (e) { if (Clazz.exceptionOf (e, Exception)) { } else { throw e; } } }, "javajs.api.SC,~N,~N"); Clazz.overrideMethod (c$, "getImageIcon", function (fileName) { return null; }, "~S"); Clazz.overrideMethod (c$, "menuFocusCallback", function (name, actionCommand, b) { }, "~S,~S,~B"); });