All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.event.InputEvent

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

public class InputEvent
extends ComponentEvent
The root event class for all component-level input events.


Variable Index

 o ALT_MASK
The alt key modifier constant.
 o BUTTON1_MASK
The mouse button1 modifier constant.
 o BUTTON2_MASK
The mouse button2 modifier constant.
 o BUTTON3_MASK
The mouse button3 modifier constant.
 o CTRL_MASK
The control key modifier constant.
 o META_MASK
The meta key modifier constant.
 o SHIFT_MASK
The shift key modifier constant.

Method Index

 o getModifiers()
Returns the modifiers flag for this event.
 o getWhen()
Returns the timestamp of when this event occurred.
 o isControlDown()
Returns whether or not the Control modifier is down on this event.
 o isMetaDown()
Returns whether or not the Meta modifier is down on this event.
 o isShiftDown()
Returns whether or not the Shift modifier is down on this event.

Variables

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

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

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

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

 o BUTTON1_MASK
  public final static int BUTTON1_MASK
The mouse button1 modifier constant.

 o BUTTON2_MASK
  public final static int BUTTON2_MASK
The mouse button2 modifier constant.

 o BUTTON3_MASK
  public final static int BUTTON3_MASK
The mouse button3 modifier constant.

Methods

 o isShiftDown
  public boolean isShiftDown()
Returns whether or not the Shift modifier is down on this event.

 o isControlDown
  public boolean isControlDown()
Returns whether or not the Control modifier is down on this event.

 o isMetaDown
  public boolean isMetaDown()
Returns whether or not the Meta modifier is down on this event.

 o getWhen
  public long getWhen()
Returns the timestamp of when this event occurred.

 o getModifiers
  public int getModifiers()
Returns the modifiers flag for this event.


All Packages  Class Hierarchy  This Package  Previous  Next  Index