JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / bin / javajs / swing / JComponent.js
1 Clazz.declarePackage ("javajs.swing");\r
2 Clazz.load (["javajs.awt.Container"], "javajs.swing.JComponent", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.autoScrolls = false;\r
5 this.actionCommand = null;\r
6 this.actionListener = null;\r
7 Clazz.instantialize (this, arguments);\r
8 }, javajs.swing, "JComponent", javajs.awt.Container);\r
9 Clazz.defineMethod (c$, "setAutoscrolls", \r
10 function (b) {\r
11 this.autoScrolls = b;\r
12 }, "~B");\r
13 Clazz.defineMethod (c$, "addActionListener", \r
14 function (listener) {\r
15 this.actionListener = listener;\r
16 }, "~O");\r
17 Clazz.defineMethod (c$, "getActionCommand", \r
18 function () {\r
19 return this.actionCommand;\r
20 });\r
21 Clazz.defineMethod (c$, "setActionCommand", \r
22 function (actionCommand) {\r
23 this.actionCommand = actionCommand;\r
24 }, "~S");\r
25 });\r