Klasse java.awt.AWTEvent | 1.1 |
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
Deklaration
public abstract class AWTEvent
extends java.util.EventObject
Beschreibung
Diese Klasse stellt die Basis für alle Event-Klassen des neuen Event-Modells dar. Ferner definiert sie Bitmasken-Konstanten, die für die Methoden enableEvents() und disableEvents() der Klasse Component verwendet werden können.
Datenelemente im Detail
-
protected int id
-
Die Art des Ereignisses.
-
protected boolean consumed
-
Signalisiert, ob das Event bereits verarbeitet wurde.
-
public final static long COMPONENT_EVENT_MASK
-
Bitmaske für Component-Events.
-
public final static long CONTAINER_EVENT_MASK
-
Bitmaske für Container-Events.
-
public final static long FOCUS_EVENT_MASK
-
Bitmaske für Focus-Events.
-
public final static long KEY_EVENT_MASK
-
Bitmaske für Key-Events.
-
public final static long MOUSE_EVENT_MASK
-
Bitmaske für Maus-Events.
-
public final static long MOUSE_MOTION_EVENT_MASK
-
Bitmaske für Mausbewegungs-Events.
-
public final static long MOUSE_WHEEL_EVENT_MASK
![[1.4]](../../images/marg14.gif)
-
Bitmaske für Mausrad-Bewegungs-Events.
-
public final static long WINDOW_FOCUS_EVENT_MASK
![[1.4]](../../images/marg14.gif)
-
Bitmaske für Windows-Fokus-Events.
-
public final static long WINDOW_STATE_EVENT_MASK
![[1.4]](../../images/marg14.gif)
-
Bitmaske für WindowState-Events.
-
public final static long WINDOW_EVENT_MASK
-
Bitmaske für Window-Events.
-
public final static long ACTION_EVENT_MASK
-
Bitmaske für Action-Events.
-
public final static long ADJUSTMENT_EVENT_MASK
-
Bitmaske für Adjustment-Events.
-
public final static long ITEM_EVENT_MASK
-
Bitmaske für Item-Events.
-
public final static long TEXT_EVENT_MASK
-
Bitmaske für Text-Events.
-
public final static long INPUT_METHOD_EVENT_MASK
![[1.2]](../../images/marg12.gif)
-
Bitmaske für InputMethod-Events.
-
public final static int RESERVED_ID_MAX
-
Die größte Event-ID, die vom AWT benutzt wird.
Konstruktoren im Detail
-
public AWTEvent(Event event)
-
Erzeugt ein neues AWTEvent anhand eines Event-Objekts des alten Event-Modells.
-
public AWTEvent(Object source, int id)
-
Erzeugt ein neues AWTEvent vom Typ id, das von source ausgelöst wurde.
Methoden im Detail
-
protected void consume()
-
Kennzeichnet das Event als verarbeitet, wodurch es nicht mehr an das Peer-Objekt weitergeschickt wird.
-
public int getID()
-
Liefert den Typ des Ereignisses zurück.
-
protected boolean isConsumed()
-
Liefert true, falls das Event bereits verarbeitet wurde, sonst false.
-
public String paramString()
-
Liefert einen leeren String.
-
public String toString()
-
Liefert einen String, der den Namen der Komponente, von der dieses Event ausging, sowie den Klassennamen enthält.
Copyright © 2002 dpunkt.Verlag, Heidelberg. Alle Rechte vorbehalten.