Contents:
ActionListener
AdjustmentEvent
AdjustmentListener
ComponentAdapter
ComponentEvent
ComponentListener
ContainerAdapter
ContainerEvent
ContainerListener
FocusAdapter
FocusEvent
FocusListener
InputEvent
ItemEvent
ItemListener
KeyAdapter
KeyEvent
KeyListener
MouseAdapter
MouseEvent
MouseListener
MouseMotionAdapter
MouseMotionListener
PaintEvent
TextEvent
TextListener
WindowAdapter
WindowEvent
WindowListener
Action events are fired off when the user performs an action on a component, such as pushing a button, double-clicking on a list item, or selecting a menu item. There is only one action event type, ACTION_PERFORMED.
public class java.awt.event.ActionEvent extends java.awt.AWTEvent { // Constants public final static int ACTION_FIRST; public final static int ACTION_LAST; public final static int ACTION_PERFORMED; public final static int ALT_MASK; public final static int CTRL_MASK; public final static int META_MASK; public final static int SHIFT_MASK; // Constructors public ActionEvent (Object source, int id, String command); public ActionEvent (Object source, int id, String command, int modifiers); // Instance Methods public String getActionCommand(); public int getModifiers(); public String paramString(); }
Specifies the beginning range of action event ID values.
Specifies the ending range of action event ID values.
The only action event type; it indicates that the user has performed an action.
A constant representing the ALT key. ORed with other masks to form modifiers setting of an AWTEvent.
A constant representing the Control key. ORed with other masks to form modifiers setting of an AWTEvent.
A constant representing the META key. ORed with other masks to form modifiers setting of an AWTEvent.
A constant representing the Shift key. ORed with other masks to form modifiers setting of an AWTEvent.
The object that generated the event.
The type ID of the event.
The action command string.
Constructs an ActionEvent with the given characteristics.
The object that generated the event.
The type ID of the event.
The action command string.
A combination of the key mask constants.
Constructs an ActionEvent with the given characteristics.
The action command string for this ActionEvent.
Generally the action command string is the label of the component that generated the event. Also, when localization is necessary, the action command string can provide a setting that does not get localized.
A combination of the key mask constants.
Returns the modifier keys that were held down when this action was performed. This enables you to perform special processing if, for example, the user holds down Shift while pushing a button.
String with current settings of ActionEvent.
AWTEvent.paramString()
Helper method for toString() to generate string of current settings.
ActionListener, AWTEvent, String