< prev index next >

src/java.desktop/share/classes/java/awt/event/ActionEvent.java

Print this page

        

*** 24,34 **** */ package java.awt.event; import java.awt.AWTEvent; - import java.awt.Event; import java.lang.annotation.Native; /** * A semantic event which indicates that a component-defined action occurred. * This high-level event is generated by a component (such as a --- 24,33 ----
*** 61,89 **** /** * The shift modifier. An indicator that the shift key was held * down during the event. */ ! public static final int SHIFT_MASK = Event.SHIFT_MASK; /** * The control modifier. An indicator that the control key was held * down during the event. */ ! public static final int CTRL_MASK = Event.CTRL_MASK; /** * The meta modifier. An indicator that the meta key was held * down during the event. */ ! public static final int META_MASK = Event.META_MASK; /** * The alt modifier. An indicator that the alt key was held * down during the event. */ ! public static final int ALT_MASK = Event.ALT_MASK; /** * The first number in the range of ids used for action events. */ --- 60,88 ---- /** * The shift modifier. An indicator that the shift key was held * down during the event. */ ! public static final int SHIFT_MASK = 1 << 0; /** * The control modifier. An indicator that the control key was held * down during the event. */ ! public static final int CTRL_MASK = 1 << 1; /** * The meta modifier. An indicator that the meta key was held * down during the event. */ ! public static final int META_MASK = 1 << 2; /** * The alt modifier. An indicator that the alt key was held * down during the event. */ ! public static final int ALT_MASK = 1 << 3; /** * The first number in the range of ids used for action events. */
*** 272,281 **** --- 271,281 ---- * Returns a parameter string identifying this action event. * This method is useful for event-logging and for debugging. * * @return a string identifying the event and its associated command */ + @SuppressWarnings("deprecation") public String paramString() { String typeStr; switch(id) { case ACTION_PERFORMED: typeStr = "ACTION_PERFORMED";
< prev index next >