java.awt.AWTEvent (JDK 1.1)
This abstract class serves as the root event type for all AWT events in Java 1.1 and supersedes the Event class which was used in Java 1.0.
Each AWTEvent has a source object, as all EventObject objects do. You can query the source of an event with the inherited getSource() method. The AWTEvent class adds an event type, or "id," for every AWT event. Use getID() to query the type of the event. Subclasses of AWTEvent define various constants for this type field.
The various _MASK constants defined by this class allow Component.enableEvents() to be called by applets and custom components that want to receive various event types without having to register an EventListener object to receive them.
public abstract classAWTEventextends EventObject { //Public ConstructorspublicAWTEvent(Eventevent); publicAWTEvent(Objectsource, intid); //Constantspublic static final longACTION_EVENT_MASK; public static final longADJUSTMENT_EVENT_MASK; public static final longCOMPONENT_EVENT_MASK; public static final longCONTAINER_EVENT_MASK; public static final longFOCUS_EVENT_MASK; public static final longITEM_EVENT_MASK; public static final longKEY_EVENT_MASK; public static final longMOUSE_EVENT_MASK; public static final longMOUSE_MOTION_EVENT_MASK; public static final intRESERVED_ID_MAX; public static final longTEXT_EVENT_MASK; public static final longWINDOW_EVENT_MASK; //Protected Instance Variablesprotected booleanconsumed; protected intid; //Public Instance Methodspublic intgetID(); public StringparamString(); public StringtoString(); //Overrides EventObject//Protected Instance Methodsprotected voidconsume(); protected booleanisConsumed(); }
Hierarchy:
Object->EventObject(Serializable)->AWTEvent
Extended By:
ActionEvent, AdjustmentEvent, ComponentEvent, ItemEvent, TextEvent
Passed To:
Button.processEvent(), Checkbox.processEvent(), CheckboxMenuItem.processEvent(), Choice.processEvent(), Component.dispatchEvent(), Component.processEvent(), ComponentPeer.handleEvent(), Container.processEvent(), EventQueue.postEvent(), List.processEvent(), MenuComponent.dispatchEvent(), MenuComponent.processEvent(), MenuItem.processEvent(), Scrollbar.processEvent(), TextComponent.processEvent(), TextField.processEvent(), Window.processEvent()
Returned By:
EventQueue.getNextEvent(), EventQueue.peekEvent()