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