All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.AWTEvent

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

public class AWTEvent
extends EventObject
The root event class for all AWT events. This class and its subclasses supercede the original java.awt.Event class. The event masks defined in this class are needed ONLY by component subclasses which are using Component.enableEvents() to select for event types not selected by registered listeners. If a listener is registered on a component, the appropriate event mask is already set internally by the component.

See Also:
enableEvents, ComponentEvent, FocusEvent, KeyEvent, MouseEvent, WindowEvent, ActionEvent, AdjustmentEvent, ItemEvent, TextEvent

Variable Index

 o ACTION_EVENT_MASK
The event mask for selecting action events.
 o ADJUSTMENT_EVENT_MASK
The event mask for selecting adjustment events.
 o COMPONENT_EVENT_MASK
The event mask for selecting component events.
 o consumed
 o CONTAINER_EVENT_MASK
The event mask for selecting container events.
 o FOCUS_EVENT_MASK
The event mask for selecting focus events.
 o id
 o ITEM_EVENT_MASK
The event mask for selecting item events.
 o KEY_EVENT_MASK
The event mask for selecting key events.
 o MOUSE_EVENT_MASK
The event mask for selecting mouse events.
 o MOUSE_MOTION_EVENT_MASK
The event mask for selecting mouse motion events.
 o TEXT_EVENT_MASK
The event mask for selecting text events.
 o WINDOW_EVENT_MASK
The event mask for selecting window events.

Constructor Index

 o AWTEvent(Event)
Constructs an AWTEvent object from the parameters of a 1.0-style event.
 o AWTEvent(Object, int)
Constructs an AWTEvent object with the specified source object and type.

Method Index

 o consume()
 o getID()
Returns the event type.
 o isConsumed()
 o paramString()
 o toString()
Returns a string representation of the object.

Variables

 o id
  protected int id
 o consumed
  protected boolean consumed
 o COMPONENT_EVENT_MASK
  public final static long COMPONENT_EVENT_MASK
The event mask for selecting component events.

 o CONTAINER_EVENT_MASK
  public final static long CONTAINER_EVENT_MASK
The event mask for selecting container events.

 o FOCUS_EVENT_MASK
  public final static long FOCUS_EVENT_MASK
The event mask for selecting focus events.

 o KEY_EVENT_MASK
  public final static long KEY_EVENT_MASK
The event mask for selecting key events.

 o MOUSE_EVENT_MASK
  public final static long MOUSE_EVENT_MASK
The event mask for selecting mouse events.

 o MOUSE_MOTION_EVENT_MASK
  public final static long MOUSE_MOTION_EVENT_MASK
The event mask for selecting mouse motion events.

 o WINDOW_EVENT_MASK
  public final static long WINDOW_EVENT_MASK
The event mask for selecting window events.

 o ACTION_EVENT_MASK
  public final static long ACTION_EVENT_MASK
The event mask for selecting action events.

 o ADJUSTMENT_EVENT_MASK
  public final static long ADJUSTMENT_EVENT_MASK
The event mask for selecting adjustment events.

 o ITEM_EVENT_MASK
  public final static long ITEM_EVENT_MASK
The event mask for selecting item events.

 o TEXT_EVENT_MASK
  public final static long TEXT_EVENT_MASK
The event mask for selecting text events.

Constructors

 o AWTEvent
  public AWTEvent(Event event)
Constructs an AWTEvent object from the parameters of a 1.0-style event.

Parameters:
event - the old-style event
 o AWTEvent
  public AWTEvent(Object source,
                  int id)
Constructs an AWTEvent object with the specified source object and type.

Parameters:
source - the object where the event originated

Methods

 o getID
  public int getID()
Returns the event type.

 o toString
  public String toString()
Returns a string representation of the object.

Overrides:
toString in class EventObject
 o paramString
  public String paramString()
 o consume
  protected void consume()
 o isConsumed
  protected boolean isConsumed()

All Packages  Class Hierarchy  This Package  Previous  Next  Index