1 Clazz.declarePackage ("java.awt.event");
\r
2 Clazz.load (["java.awt.AWTEvent"], "java.awt.event.ActionEvent", ["java.awt.event.KeyEvent"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.actionCommand = null;
\r
7 Clazz.instantialize (this, arguments);
\r
8 }, java.awt.event, "ActionEvent", java.awt.AWTEvent);
\r
9 Clazz.makeConstructor (c$,
\r
10 function (source, id, command) {
\r
11 this.construct (source, id, command, 0);
\r
13 Clazz.makeConstructor (c$,
\r
14 function (source, id, command, modifiers) {
\r
15 this.construct (source, id, command, 0, modifiers);
\r
17 Clazz.makeConstructor (c$,
\r
18 function (source, id, command, when, modifiers) {
\r
19 Clazz.superConstructor (this, java.awt.event.ActionEvent, [source, id]);
\r
20 this.actionCommand = command;
\r
22 this.modifiers = modifiers;
\r
23 }, "~O,~N,~S,~N,~N");
\r
24 Clazz.defineMethod (c$, "getActionCommand",
\r
26 return this.actionCommand;
\r
28 Clazz.defineMethod (c$, "getWhen",
\r
32 Clazz.defineMethod (c$, "getModifiers",
\r
34 return this.modifiers;
\r
36 Clazz.overrideMethod (c$, "paramString",
\r
41 typeStr = "ACTION_PERFORMED";
\r
44 typeStr = "unknown type";
\r
46 return typeStr + ",cmd=" + this.actionCommand + ",when=" + this.when + ",modifiers=" + java.awt.event.KeyEvent.getKeyModifiersText (this.modifiers);
\r
48 Clazz.defineStatics (c$,
\r
53 "ACTION_FIRST", 1001,
\r
54 "ACTION_LAST", 1001,
\r
55 "ACTION_PERFORMED", 1001);
\r