java awt event ActionEvent








Class java.awt.event.ActionEvent





All Packages Class Hierarchy This Package Previous Next Index


Class java.awt.event.ActionEvent


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



public class ActionEvent
extends AWTEvent

The action semantic event.


See Also:
ActionListener








ACTION_FIRST
Marks the first integer id for the range of action event ids.

ACTION_LAST
Marks the last integer id for the range of action event ids.

ACTION_PERFORMED
An action performed event type.

ALT_MASK

The alt modifier constant.

CTRL_MASK
The control modifier constant.

META_MASK

The meta modifier constant.

SHIFT_MASK
The shift modifier constant.






ActionEvent(Object, int, String)
Constructs an ActionEvent object with the specified source object.

ActionEvent(Object, int, String, int)
Constructs an ActionEvent object with the specified source object.






getActionCommand()
Returns the command name associated with this action.

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

paramString()







SHIFT_MASK

public static final int SHIFT_MASK


The shift modifier constant.


CTRL_MASK

public static final int CTRL_MASK


The control modifier constant.


META_MASK

public static final int META_MASK


The meta modifier constant.


ALT_MASK

public static final int ALT_MASK


The alt modifier constant.


ACTION_FIRST

public static final int ACTION_FIRST


Marks the first integer id for the range of action event ids.


ACTION_LAST

public static final int ACTION_LAST


Marks the last integer id for the range of action event ids.


ACTION_PERFORMED

public static final int ACTION_PERFORMED


An action performed event type.







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



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







getActionCommand

public String getActionCommand()


Returns the command name associated with this action.



getModifiers

public int getModifiers()


Returns the modifiers held down during this action event.



paramString

public String paramString()



Overrides:
paramString in class AWTEvent




All Packages Class Hierarchy This Package Previous Next Index

Submit a bug or feature - Version 1.1.7 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.




Wyszukiwarka

Podobne podstrony:
java awt event ActionListener
java awt event FocusEvent
java awt event MouseMotionListener
java awt event WindowEvent
java awt event ComponentEvent
java awt event ContainerAdapter
Package java awt event
java awt event WindowAdapter
java awt event MouseMotionAdapter
java awt event FocusListener
java awt event InputEvent
java awt event AdjustmentEvent
java awt event KeyAdapter
java awt event PaintEvent
java awt event ItemListener
java awt event ItemEvent
java awt event ContainerEvent
java awt event MouseAdapter
java awt event WindowListener

więcej podobnych podstron