JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / javajs / swing / JMenu.js
1 Clazz.declarePackage ("javajs.swing");
2 Clazz.load (["javajs.swing.JMenuItem"], "javajs.swing.JMenu", null, function () {
3 c$ = Clazz.declareType (javajs.swing, "JMenu", javajs.swing.JMenuItem);
4 Clazz.makeConstructor (c$, 
5 function () {
6 Clazz.superConstructor (this, javajs.swing.JMenu, ["mnu", 4]);
7 });
8 Clazz.defineMethod (c$, "getItemCount", 
9 function () {
10 return this.getComponentCount ();
11 });
12 Clazz.defineMethod (c$, "getItem", 
13 function (i) {
14 return this.getComponent (i);
15 }, "~N");
16 Clazz.overrideMethod (c$, "getPopupMenu", 
17 function () {
18 return this;
19 });
20 Clazz.overrideMethod (c$, "toHTML", 
21 function () {
22 return this.getMenuHTML ();
23 });
24 });