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. Input events are delivered to listeners before they are processed normally by the source where they originated. This allows listeners and component subclasses to "consume" the event so that the source will not process them in their default manner. For example, consuming mousePressed events on a Button component will prevent the Button from being activated.


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 consume()
Consumes this event so that it will not be processed in the default manner by the source which originated it.
 o getModifiers()
Returns the modifiers flag for this event.
 o getWhen()
Returns the timestamp of when this event occurred.
 o isAltDown()
Returns whether or not the Alt modifier is down on this event.
 o isConsumed()
Returns whether or not this event has been consumed.
 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
Properties Public Constant 
   SHIFT_MASK=int 
The shift key modifier constant.

 o CTRL_MASK
Properties Public Constant 
   CTRL_MASK=int 
The control key modifier constant.

 o META_MASK
Properties Public Constant 
   META_MASK=int 
The meta key modifier constant.

 o ALT_MASK
Properties Public Constant 
   ALT_MASK=int 
The alt key modifier constant.

 o BUTTON1_MASK
Properties Public Constant 
   BUTTON1_MASK=int 
The mouse button1 modifier constant.

 o BUTTON2_MASK
Properties Public Constant 
   BUTTON2_MASK=int 
The mouse button2 modifier constant.

 o BUTTON3_MASK
Properties Public Constant 
   BUTTON3_MASK=int 
The mouse button3 modifier constant.

Methods

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

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

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

 o isAltDown
    method isAltDown() returns boolean public     
Returns whether or not the Alt modifier is down on this event.

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

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

 o consume
    method consume()  public     
Consumes this event so that it will not be processed in the default manner by the source which originated it.

Overrides:
consume in class AWTEvent
 o isConsumed
    method isConsumed() returns boolean public     
Returns whether or not this event has been consumed.

Overrides:
isConsumed in class AWTEvent
See Also:
consume

All Packages  Class Hierarchy  This Package  Previous  Next  Index