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