Class java.awt.event.ActionEvent
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.event.ActionEvent

Object
   |
   +----EventObject
           |
           +----AWTEvent
                   |
                   +----java.awt.event.ActionEvent

public class ActionEvent
extends AWTEvent
The action semantic event.

Version:
1.13 07/01/98
Author:
Carl Quinn
See Also:
ActionListener

Variable Index

 o ACTION_FIRST
Marks the first integer id for the range of action event ids.
 o ACTION_LAST
Marks the last integer id for the range of action event ids.
 o ACTION_PERFORMED
An action performed event type.
 o ALT_MASK
The alt modifier constant.
 o CTRL_MASK
The control modifier constant.
 o META_MASK
The meta modifier constant.
 o SHIFT_MASK
The shift modifier constant.

Constructor Index

 o java.awt.event.ActionEvent(Object, int, String)
Constructs an ActionEvent object with the specified source object.
 o java.awt.event.ActionEvent(Object, int, String, int)
Constructs an ActionEvent object with the specified source object.

Method Index

 o getActionCommand()
Returns the command name associated with this action.
 o getModifiers()
Returns the modifiers held down during this action event.
 o paramString()

Variables

 o ACTION_FIRST
public static final int ACTION_FIRST
Marks the first integer id for the range of action event ids.

 o ACTION_LAST
public static final int ACTION_LAST
Marks the last integer id for the range of action event ids.

 o ACTION_PERFORMED
public static final int ACTION_PERFORMED
An action performed event type.

 o ALT_MASK
public static final int ALT_MASK
The alt modifier constant.

 o CTRL_MASK
public static final int CTRL_MASK
The control modifier constant.

 o META_MASK
public static final int META_MASK
The meta modifier constant.

 o SHIFT_MASK
public static final int SHIFT_MASK
The shift modifier constant.

Constructors

 o ActionEvent
public ActionEvent(Object source,
                   int id,
                   String command)
Constructs an ActionEvent object with the specified source object.

Parameters:
source - the object where the event originated
id - the type of event
command - the command string for this action event
 o ActionEvent
public ActionEvent(Object source,
                   int id,
                   String command,
                   int modifiers)
Constructs an ActionEvent object with the specified source object.

Parameters:
source - the object where the event originated
id - the type of event
command - the command string for this action event
modifiers - the modifiers held down during this action

Methods

 o getActionCommand
public java.lang.String getActionCommand()
Returns the command name associated with this action.

 o getModifiers
public int getModifiers()
Returns the modifiers held down during this action event.

 o paramString
public java.lang.String paramString()
Overrides:
paramString in class AWTEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index