API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.event. InputEvent View Source
Author(s)
Carl Quinn
Since
1.1
Version
1.37 03/17/06
Serial
Hierarchy
 Object
      EventObject
          AWTEvent
              ComponentEvent
                  InputEvent
Implements
Subclasses
Description
publicabstract abstract class InputEvent
  The root event class for all component-level input events.
Constructors
pack-private InputEvent (Component source, int id, long when, int modifiers)
  Constructs an InputEvent object with the specified source component, modifiers, and type.
Methods
Hide/Show inherited methods
public void consume () [Overrides AWTEvent]
Consumes this event so that it will not be processed in the default manner by the source which originated it.
public Component getComponent () [Inherited From ComponentEvent]
  Returns the originator of the event.
public int getID () [Inherited From AWTEvent]
Returns the event type.
public int getModifiers ()
Returns the modifier mask for this event.
public int getModifiersEx ()
  Returns the extended modifier mask for this event.
publicstatic String getModifiersExText (int modifiers)
  Returns a String describing the extended modifier keys and mouse buttons, such as "Shift", "Button1", or "Ctrl+Shift".
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public long getWhen ()
Returns the timestamp of when this event occurred.
public boolean isAltDown ()
Returns whether or not the Alt modifier is down on this event.
public boolean isAltGraphDown ()
Returns whether or not the AltGraph modifier is down on this event.
public boolean isConsumed () [Overrides AWTEvent]
  Returns whether or not this event has been consumed.
public boolean isControlDown ()
Returns whether or not the Control modifier is down on this event.
public boolean isMetaDown ()
Returns whether or not the Meta modifier is down on this event.
public boolean isShiftDown ()
Returns whether or not the Shift modifier is down on this event.
public String paramString () [Inherited From ComponentEvent]
  Returns a parameter string identifying this event.
public void setSource (Object newSource) [Inherited From AWTEvent]
  Retargets an event to a new source.
public String toString () [Inherited From AWTEvent]
Returns a String representation of this object.
Fields
Hide/Show inherited fields
publicfinalstatic long ACTION_EVENT_MASK = "128" [Inherited From AWTEvent]
The event mask for selecting action events.
publicfinalstatic long ADJUSTMENT_EVENT_MASK = "256" [Inherited From AWTEvent]
The event mask for selecting adjustment events.
publicfinalstatic int ALT_DOWN_MASK = "512"
  The Alt key extended modifier constant.
publicfinalstatic int ALT_GRAPH_DOWN_MASK = "8192"
  The AltGraph key extended modifier constant.
publicfinalstatic int ALT_GRAPH_MASK = "32"
The AltGraph key modifier constant.
publicfinalstatic int ALT_MASK = "8"
  The Alt key modifier constant.
publicfinalstatic int BUTTON1_DOWN_MASK = "1024"
  The Mouse Button1 extended modifier constant.
publicfinalstatic int BUTTON1_MASK = "16"
  The Mouse Button1 modifier constant.
publicfinalstatic int BUTTON2_DOWN_MASK = "2048"
  The Mouse Button2 extended modifier constant.
publicfinalstatic int BUTTON2_MASK = "8"
  The Mouse Button2 modifier constant.
publicfinalstatic int BUTTON3_DOWN_MASK = "4096"
  The Mouse Button3 extended modifier constant.
publicfinalstatic int BUTTON3_MASK = "4"
  The Mouse Button3 modifier constant.
publicfinalstatic long COMPONENT_EVENT_MASK = "1" [Inherited From AWTEvent]
The event mask for selecting component events.
publicfinalstatic int COMPONENT_FIRST = "100" [Inherited From ComponentEvent]
The first number in the range of ids used for component events.
publicfinalstatic int COMPONENT_HIDDEN = "103" [Inherited From ComponentEvent]
This event indicates that the component was rendered invisible.
publicfinalstatic int COMPONENT_LAST = "103" [Inherited From ComponentEvent]
The last number in the range of ids used for component events.
publicfinalstatic int COMPONENT_MOVED = "100" [Inherited From ComponentEvent]
This event indicates that the component's position changed.
publicfinalstatic int COMPONENT_RESIZED = "101" [Inherited From ComponentEvent]
This event indicates that the component's size changed.
publicfinalstatic int COMPONENT_SHOWN = "102" [Inherited From ComponentEvent]
This event indicates that the component was made visible.
protected boolean consumed [Inherited From AWTEvent]
  Controls whether or not the event is sent back down to the peer once the source has processed it - false means it's sent to the peer; true means it's not.
publicfinalstatic long CONTAINER_EVENT_MASK = "2" [Inherited From AWTEvent]
The event mask for selecting container events.
publicfinalstatic int CTRL_DOWN_MASK = "128"
  The Control key extended modifier constant.
publicfinalstatic int CTRL_MASK = "2"
  The Control key modifier constant.
pack-privatefinalstatic int FIRST_HIGH_BIT = "16384"
publicfinalstatic long FOCUS_EVENT_MASK = "4" [Inherited From AWTEvent]
The event mask for selecting focus events.
publicfinalstatic long HIERARCHY_BOUNDS_EVENT_MASK = "65536" [Inherited From AWTEvent]
The event mask for selecting hierarchy bounds events.
publicfinalstatic long HIERARCHY_EVENT_MASK = "32768" [Inherited From AWTEvent]
The event mask for selecting hierarchy events.
pack-privatefinalstatic int HIGH_MODIFIERS = "-16384"
protected int id [Inherited From AWTEvent]
  The event's id.
publicfinalstatic long INPUT_METHOD_EVENT_MASK = "2048" [Inherited From AWTEvent]
The event mask for selecting input method events.
publicfinalstatic long INVOCATION_EVENT_MASK = "16384" [Inherited From AWTEvent]
The event mask for selecting invocation events.
publicfinalstatic long ITEM_EVENT_MASK = "512" [Inherited From AWTEvent]
The event mask for selecting item events.
pack-privatefinalstatic int JDK_1_3_MODIFIERS = "63"
publicfinalstatic long KEY_EVENT_MASK = "8" [Inherited From AWTEvent]
The event mask for selecting key events.
publicfinalstatic int META_DOWN_MASK = "256"
  The Meta key extended modifier constant.
publicfinalstatic int META_MASK = "4"
  The Meta key modifier constant.
pack-private int modifiers
  The state of the modifier mask at the time the input event was fired.
publicfinalstatic long MOUSE_EVENT_MASK = "16" [Inherited From AWTEvent]
The event mask for selecting mouse events.
publicfinalstatic long MOUSE_MOTION_EVENT_MASK = "32" [Inherited From AWTEvent]
The event mask for selecting mouse motion events.
publicfinalstatic long MOUSE_WHEEL_EVENT_MASK = "131072" [Inherited From AWTEvent]
  The event mask for selecting mouse wheel events.
publicfinalstatic long PAINT_EVENT_MASK = "8192" [Inherited From AWTEvent]
The event mask for selecting paint events.
publicfinalstatic int RESERVED_ID_MAX = "1999" [Inherited From AWTEvent]
  The maximum value for reserved AWT event IDs.
pack-privatefinalstatic long serialVersionUID = "-2482525981698309786"
publicfinalstatic int SHIFT_DOWN_MASK = "64"
  The Shift key extended modifier constant.
publicfinalstatic int SHIFT_MASK = "1"
  The Shift key modifier constant.
protectedtransient Object source [Inherited From EventObject]
The object on which the Event initially occurred.
publicfinalstatic long TEXT_EVENT_MASK = "1024" [Inherited From AWTEvent]
The event mask for selecting text events.
pack-private long when
  The input event's Time stamp in UTC format.
publicfinalstatic long WINDOW_EVENT_MASK = "64" [Inherited From AWTEvent]
The event mask for selecting window events.
publicfinalstatic long WINDOW_FOCUS_EVENT_MASK = "524288" [Inherited From AWTEvent]
  The event mask for selecting window focus events.
publicfinalstatic long WINDOW_STATE_EVENT_MASK = "262144" [Inherited From AWTEvent]
  The event mask for selecting window state events.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar