The root class of all AWT events. Subclasses of this class are the replacement for java.awt.Event, which is only used for the Java 1.0.2 event model. In Java 1.1, event objects are passed from event source components to objects implementing a corresponding listener interface. Some event sources have a corresponding interface, too. For example, AdjustmentEvents are passed from Adjustable objects to AdjustmentListeners. Some event types do not have corresponding interfaces; for example, ActionEvents are passed from Buttons to ActionListeners, but there is no "Actionable" interface that Button implements.
public abstract class java.awt.AWTEvent extends java.util.EventObject { // Constants public final static long ACTION_EVENT_MASK; public final static long ADJUSTMENT_EVENT_MASK; public final static long COMPONENT_EVENT_MASK; public final static long CONTAINER_EVENT_MASK; public final static long FOCUS_EVENT_MASK; public final static long ITEM_EVENT_MASK; public final static long KEY_EVENT_MASK; public final static long MOUSE_EVENT_MASK; public final static long MOUSE_MOTION_EVENT_MASK; public final static long RESERVED_ID_MAX; public final static long TEXT_EVENT_MASK; public final static long WINDOW_EVENT_MASK; // Variables protected boolean consumed; protected int id; // Constructors public AWTEvent (Event event); public AWTEvent (Object source, int id); // Instance Methods public int getID(); public String paramString(); public String toString(); // Protected Instance Methods protected void consume(); protected boolean isConsumed(); }
The mask for action events.
The mask for adjustment events.
The mask for component events.
The mask for container events.
The mask for focus events.
The mask for item events.
The mask for key events.
The mask for mouse events.
The mask for mouse motion events.
The maximum reserved event id.
The mask for text events.
The mask for window events.
If consumed is true, the event will not be sent back to the peer. Semantic events will never be sent back to a peer; thus consumed is always true for semantic events.
The type ID of this event.
A version 1.0.2 java.awt.Event object.
Constructs a 1.1 java.awt.AWTEvent derived from a 1.0.2 java.awt.Event object.
The object that the event originated from.
An event type ID.
Constructs an AWTEvent object.
The type ID of the event.
A string with the current settings of AWTEvent.
Helper method for toString() that generates a string of current settings.
A string representation of the AWTEvent object.
Object.toString()
Consumes the event so it is not sent back to its source.
A flag indicating whether this event has been consumed.
ActionEvent, AdjustmentEvent, ComponentEvent, Event, EventObject, FocusEvent, ItemEvent, KeyEvent, MouseEvent, WindowEvent