charva.awt.event

Class AWTEvent

Known Direct Subclasses:
ActionEvent, AdjustmentEvent, FocusEvent, GarbageCollectionEvent, InputEvent, InvocationEvent, ItemEvent, PaintEvent, ScrollEvent, SyncEvent, WindowEvent

public abstract class AWTEvent
extends java.util.EventObject

This is the base class for all the CHARVA user-interface events. It encapsulates information about the event.

Field Summary

static int
ACTION_PERFORMED
static int
ADJUSTMENT_EVENT
static int
FOCUS_GAINED
static int
FOCUS_LOST
static int
GARBAGE_COLLECTION
static int
INVOCATION_EVENT
static int
ITEM_STATE_CHANGED
static int
KEY_PRESSED
We may define other event types later.
static int
KEY_TYPED
static int
LIST_SELECTION
static int
MOUSE_EVENT
static int
PAINT_EVENT
static int
RESERVED_ID_MAX
Users can define their own events as long as the ID is greater than RESERVED_ID_MAX.
static int
SCROLL_EVENT
static int
SYNC_EVENT
static int
WINDOW_CLOSING
static int
WINDOW_OPENED

Constructor Summary

AWTEvent(Object source_, int id_)
Construct an event with the specified source and ID.

Method Summary

int
getID()

Field Details

ACTION_PERFORMED

public static final int ACTION_PERFORMED
Field Value:
5

ADJUSTMENT_EVENT

public static final int ADJUSTMENT_EVENT
Field Value:
11

FOCUS_GAINED

public static final int FOCUS_GAINED
Field Value:
7

FOCUS_LOST

public static final int FOCUS_LOST
Field Value:
6

GARBAGE_COLLECTION

public static final int GARBAGE_COLLECTION
Field Value:
14

INVOCATION_EVENT

public static final int INVOCATION_EVENT
Field Value:
15

ITEM_STATE_CHANGED

public static final int ITEM_STATE_CHANGED
Field Value:
8

KEY_PRESSED

public static final int KEY_PRESSED
We may define other event types later.
Field Value:
1

KEY_TYPED

public static final int KEY_TYPED
Field Value:
2

LIST_SELECTION

public static final int LIST_SELECTION
Field Value:
13

MOUSE_EVENT

public static final int MOUSE_EVENT
Field Value:
16

PAINT_EVENT

public static final int PAINT_EVENT
Field Value:
9

RESERVED_ID_MAX

public static final int RESERVED_ID_MAX
Users can define their own events as long as the ID is greater than RESERVED_ID_MAX.
Field Value:
100

SCROLL_EVENT

public static final int SCROLL_EVENT
Field Value:
12

SYNC_EVENT

public static final int SYNC_EVENT
Field Value:
10

WINDOW_CLOSING

public static final int WINDOW_CLOSING
Field Value:
3

WINDOW_OPENED

public static final int WINDOW_OPENED
Field Value:
4

Constructor Details

AWTEvent

public AWTEvent(Object source_,
                int id_)
Construct an event with the specified source and ID.
Parameters:
source_ - The component that emitted this event.
id_ - Identifies the event type.

Method Details

getID

public int getID()