这个类定义在java.awt.event包。按钮被点击时,都会生成ActionEvent双击或列表中的项目。
类的声明
以下是声明 的java.awt.event.ActionEvent类:
public class ActionEvent extends AWTEvent
字段域
以下是java.awt.event.ActionEvent类字段:
- 
		
static int ACTION_FIRST -- 用于动作事件的ID的范围内的第一个数字。
 - 
		
static int ACTION_LAST -- 用于动作事件的ID范围内的最后一个数字。
 - 
		
static int ACTION_PERFORMED -- 此事件ID表明出现有意义的动作。
 - 
		
static int ALT_MASK -- alt 修饰符.
 - 
		
static int CTRL_MASK -- control 修饰符.
 - 
		
static int META_MASK -- meta 修饰符.
 - 
		
static int SHIFT_MASK -- shift 修饰符.
 
类的构造函数
| S.N. | 构造函数与说明 | 
|---|---|
| 1 | 
				ActionEvent(java.lang.Object source, int id, java.lang.String command) Constructs an ActionEvent object.  | 
		
| 2 | 
				ActionEvent(java.lang.Object source, int id, java.lang.String command, int modifiers) Constructs an ActionEvent object with modifier keys.  | 
		
| 3 | 
				ActionEvent(java.lang.Object source, int id, java.lang.String command, long when, int modifiers) Constructs an ActionEvent object with the specified modifier keys and timestamp.  | 
		
类方法
| S.N. | 方法& 描述 | 
|---|---|
| 1 | 
				java.lang.String getActionCommand() Returns the command string associated with this action.  | 
		
| 2 | 
				int getModifiers() Returns the modifier keys held down during this action event.  | 
		
| 3 | 
				long getWhen() Returns the timestamp of when this event occurred.  | 
		
| 4 | 
				java.lang.String paramString() Returns a parameter string identifying this action event.  | 
		
继承的方法
这个类继承的方法从以下类别:
- 
		
java.awt.AWTEvent
 - 
		
java.util.EventObject
 - 
		
java.lang.Object
 
						上一篇:
								AWT AWTEvent类
												下一篇:
								AWT InputEvent类
												
						
						
					
					
					