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.
|
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.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
AWTEvent
public AWTEvent(java.lang.Object source,
int id)
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...