1 26 27 28 package swingwt.awt.event; 29 30 import swingwt.awt.*; 31 32 38 public class ActionEvent extends AWTEvent implements java.io.Serializable { 39 40 public static final int SHIFT_MASK = InputEvent.SHIFT_MASK; 41 public static final int CTRL_MASK = InputEvent.CTRL_MASK; 42 public static final int META_MASK = InputEvent.META_MASK; 43 public static final int ALT_MASK = InputEvent.ALT_MASK; 44 public static final int ACTION_FIRST = 1001; 45 public static final int ACTION_LAST = 1001; 46 public static final int ACTION_PERFORMED = ACTION_FIRST; 47 48 private String command; 49 int modifiers; 50 51 public ActionEvent(Object source, int id) { 52 this(source, id, "", 0); 53 } 54 55 59 public ActionEvent(Object source, int id, String command) { 60 this(source, id, command, 0); 61 } 62 63 public ActionEvent(Object source, int id, String command, int modifiers) { 64 super(source, id); 65 this.command = command; 66 this.modifiers = modifiers; 67 } 68 69 public String getActionCommand() { 70 return this.command; 71 } 72 73 public void setActionCommand(String command) { 74 this.command = command; 75 } 76 77 public int getModifiers() { 78 return modifiers; 79 } 80 81 } 82 | Popular Tags |