35 * <code>Button</code>) when
36 * the component-specific action occurs (such as being pressed).
37 * The event is passed to every <code>ActionListener</code> object
38 * that registered to receive such events using the component's
39 * <code>addActionListener</code> method.
40 * <p>
41 * <b>Note:</b> To invoke an <code>ActionEvent</code> on a
42 * <code>Button</code> using the keyboard, use the Space bar.
43 * <P>
44 * The object that implements the <code>ActionListener</code> interface
45 * gets this <code>ActionEvent</code> when the event occurs. The listener
46 * is therefore spared the details of processing individual mouse movements
47 * and mouse clicks, and can instead process a "meaningful" (semantic)
48 * event like "button pressed".
49 * <p>
50 * An unspecified behavior will be caused if the {@code id} parameter
51 * of any particular {@code ActionEvent} instance is not
52 * in the range from {@code ACTION_FIRST} to {@code ACTION_LAST}.
53 *
54 * @see ActionListener
55 * @see <a href="http://java.sun.com/docs/books/tutorial/uiswing/events/actionlistener.html">Tutorial: How to Write an Action Listener</a>
56 *
57 * @author Carl Quinn
58 * @since 1.1
59 */
60 public class ActionEvent extends AWTEvent {
61
62 /**
63 * The shift modifier. An indicator that the shift key was held
64 * down during the event.
65 */
66 public static final int SHIFT_MASK = Event.SHIFT_MASK;
67
68 /**
69 * The control modifier. An indicator that the control key was held
70 * down during the event.
71 */
72 public static final int CTRL_MASK = Event.CTRL_MASK;
73
74 /**
75 * The meta modifier. An indicator that the meta key was held
|
35 * <code>Button</code>) when
36 * the component-specific action occurs (such as being pressed).
37 * The event is passed to every <code>ActionListener</code> object
38 * that registered to receive such events using the component's
39 * <code>addActionListener</code> method.
40 * <p>
41 * <b>Note:</b> To invoke an <code>ActionEvent</code> on a
42 * <code>Button</code> using the keyboard, use the Space bar.
43 * <P>
44 * The object that implements the <code>ActionListener</code> interface
45 * gets this <code>ActionEvent</code> when the event occurs. The listener
46 * is therefore spared the details of processing individual mouse movements
47 * and mouse clicks, and can instead process a "meaningful" (semantic)
48 * event like "button pressed".
49 * <p>
50 * An unspecified behavior will be caused if the {@code id} parameter
51 * of any particular {@code ActionEvent} instance is not
52 * in the range from {@code ACTION_FIRST} to {@code ACTION_LAST}.
53 *
54 * @see ActionListener
55 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html">Tutorial: How to Write an Action Listener</a>
56 *
57 * @author Carl Quinn
58 * @since 1.1
59 */
60 public class ActionEvent extends AWTEvent {
61
62 /**
63 * The shift modifier. An indicator that the shift key was held
64 * down during the event.
65 */
66 public static final int SHIFT_MASK = Event.SHIFT_MASK;
67
68 /**
69 * The control modifier. An indicator that the control key was held
70 * down during the event.
71 */
72 public static final int CTRL_MASK = Event.CTRL_MASK;
73
74 /**
75 * The meta modifier. An indicator that the meta key was held
|