X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjava%2Fawt%2Fevent%2FActionEvent.js;h=0138288fd381eb20002b0f0a1f6cd3748ee9021d;hp=7174a26815d85a1010c98f7a872a59523a1d40e2;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/java/awt/event/ActionEvent.js b/site/j2s/java/awt/event/ActionEvent.js index 7174a26..0138288 100644 --- a/site/j2s/java/awt/event/ActionEvent.js +++ b/site/j2s/java/awt/event/ActionEvent.js @@ -1,56 +1,56 @@ -Clazz.declarePackage ("java.awt.event"); -Clazz.load (["java.awt.AWTEvent"], "java.awt.event.ActionEvent", ["java.awt.event.KeyEvent"], function () { -c$ = Clazz.decorateAsClass (function () { -this.actionCommand = null; -this.when = 0; -this.modifiers = 0; -Clazz.instantialize (this, arguments); -}, java.awt.event, "ActionEvent", java.awt.AWTEvent); -Clazz.makeConstructor (c$, -function (source, id, command) { -this.construct (source, id, command, 0); -}, "~O,~N,~S"); -Clazz.makeConstructor (c$, -function (source, id, command, modifiers) { -this.construct (source, id, command, 0, modifiers); -}, "~O,~N,~S,~N"); -Clazz.makeConstructor (c$, -function (source, id, command, when, modifiers) { -Clazz.superConstructor (this, java.awt.event.ActionEvent, [source, id]); -this.actionCommand = command; -this.when = when; -this.modifiers = modifiers; -}, "~O,~N,~S,~N,~N"); -Clazz.defineMethod (c$, "getActionCommand", -function () { -return this.actionCommand; -}); -Clazz.defineMethod (c$, "getWhen", -function () { -return this.when; -}); -Clazz.defineMethod (c$, "getModifiers", -function () { -return this.modifiers; -}); -Clazz.overrideMethod (c$, "paramString", -function () { -var typeStr; -switch (this.id) { -case 1001: -typeStr = "ACTION_PERFORMED"; -break; -default: -typeStr = "unknown type"; -} -return typeStr + ",cmd=" + this.actionCommand + ",when=" + this.when + ",modifiers=" + java.awt.event.KeyEvent.getKeyModifiersText (this.modifiers); -}); -Clazz.defineStatics (c$, -"SHIFT_MASK", 1, -"CTRL_MASK", 2, -"META_MASK", 4, -"ALT_MASK", 8, -"ACTION_FIRST", 1001, -"ACTION_LAST", 1001, -"ACTION_PERFORMED", 1001); -}); +Clazz.declarePackage ("java.awt.event"); +Clazz.load (["java.awt.AWTEvent"], "java.awt.event.ActionEvent", ["java.awt.event.KeyEvent"], function () { +c$ = Clazz.decorateAsClass (function () { +this.actionCommand = null; +this.when = 0; +this.modifiers = 0; +Clazz.instantialize (this, arguments); +}, java.awt.event, "ActionEvent", java.awt.AWTEvent); +Clazz.makeConstructor (c$, +function (source, id, command) { +this.construct (source, id, command, 0); +}, "~O,~N,~S"); +Clazz.makeConstructor (c$, +function (source, id, command, modifiers) { +this.construct (source, id, command, 0, modifiers); +}, "~O,~N,~S,~N"); +Clazz.makeConstructor (c$, +function (source, id, command, when, modifiers) { +Clazz.superConstructor (this, java.awt.event.ActionEvent, [source, id]); +this.actionCommand = command; +this.when = when; +this.modifiers = modifiers; +}, "~O,~N,~S,~N,~N"); +Clazz.defineMethod (c$, "getActionCommand", +function () { +return this.actionCommand; +}); +Clazz.defineMethod (c$, "getWhen", +function () { +return this.when; +}); +Clazz.defineMethod (c$, "getModifiers", +function () { +return this.modifiers; +}); +Clazz.overrideMethod (c$, "paramString", +function () { +var typeStr; +switch (this.id) { +case 1001: +typeStr = "ACTION_PERFORMED"; +break; +default: +typeStr = "unknown type"; +} +return typeStr + ",cmd=" + this.actionCommand + ",when=" + this.when + ",modifiers=" + java.awt.event.KeyEvent.getKeyModifiersText (this.modifiers); +}); +Clazz.defineStatics (c$, +"SHIFT_MASK", 1, +"CTRL_MASK", 2, +"META_MASK", 4, +"ALT_MASK", 8, +"ACTION_FIRST", 1001, +"ACTION_LAST", 1001, +"ACTION_PERFORMED", 1001); +});