java.awt
Class AWTEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
Direct Known Subclasses:
ActionEvent, AdjustmentEvent, FocusEvent, InputEvent, InvocationEvent, ItemEvent, TextEvent, WindowEvent

public class AWTEvent
extends EventObject

This is the base class for all awt events.


Field Summary
static long ACTION_EVENT_MASK
           
static long ADJUSTMENT_EVENT_MASK
           
protected  boolean consumed
          The consumed status of the event.
static long FOCUS_EVENT_MASK
           
protected  int id
          The id determines the type of the event: MOUSE_PRESSED, KEY_TYPED, MOUSE_CLICKED...
static long ITEM_EVENT_MASK
           
static long KEY_EVENT_MASK
           
static long MOUSE_EVENT_MASK
           
static long MOUSE_MOTION_EVENT_MASK
           
static int RESERVED_ID_MAX
           
static long TEXT_EVENT_MASK
           
static long WINDOW_EVENT_MASK
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AWTEvent(java.lang.Object source, int id)
           
 
Method Summary
 void consume()
          "Consumes" the event.
 int getID()
          Returns the type of the event: MOUSE_PRESSED, KEY_TYPED, MOUSE_CLICKED...
 boolean isConsumed()
          Queries the consumed state.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOCUS_EVENT_MASK

public static final long FOCUS_EVENT_MASK

KEY_EVENT_MASK

public static final long KEY_EVENT_MASK

MOUSE_EVENT_MASK

public static final long MOUSE_EVENT_MASK

MOUSE_MOTION_EVENT_MASK

public static final long MOUSE_MOTION_EVENT_MASK

WINDOW_EVENT_MASK

public static final long WINDOW_EVENT_MASK

ACTION_EVENT_MASK

public static final long ACTION_EVENT_MASK

ADJUSTMENT_EVENT_MASK

public static final long ADJUSTMENT_EVENT_MASK

ITEM_EVENT_MASK

public static final long ITEM_EVENT_MASK

TEXT_EVENT_MASK

public static final long TEXT_EVENT_MASK

RESERVED_ID_MAX

public static final int RESERVED_ID_MAX

id

protected int id
The id determines the type of the event: MOUSE_PRESSED, KEY_TYPED, MOUSE_CLICKED...

consumed

protected boolean consumed
The consumed status of the event. If this is set to true by the application, kAWT will not perform any default action associated with this event.
Constructor Detail

AWTEvent

public AWTEvent(java.lang.Object source,
                int id)
Method Detail

consume

public void consume()
"Consumes" the event. If an event is consumed by the application, kAWT will not perform any default action associated with this event.

isConsumed

public boolean isConsumed()
Queries the consumed state.

getID

public int getID()
Returns the type of the event: MOUSE_PRESSED, KEY_TYPED, MOUSE_CLICKED...