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
11 this.autoScrolls = b;
\r
13 Clazz.defineMethod (c$, "addActionListener",
\r
14 function (listener) {
\r
15 this.actionListener = listener;
\r
17 Clazz.defineMethod (c$, "getActionCommand",
\r
19 return this.actionCommand;
\r
21 Clazz.defineMethod (c$, "setActionCommand",
\r
22 function (actionCommand) {
\r
23 this.actionCommand = actionCommand;
\r