Weitere aktuelle Java-Titel finden Sie bei dpunkt.
 Inhaltsverzeichnis   Vorhergehendes Paket   Seite Zurück   Seite Vor   Nächstes Paket   Paketübersicht   Index

Klasse java.awt.AWTEvent1.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
protected intid
protected booleanconsumed
public final static longCOMPONENT_EVENT_MASK
public final static longCONTAINER_EVENT_MASK
public final static longFOCUS_EVENT_MASK
public final static longKEY_EVENT_MASK
public final static longMOUSE_EVENT_MASK
public final static longMOUSE_MOTION_EVENT_MASK
public final static longMOUSE_WHEEL_EVENT_MASK     [1.4]
public final static longWINDOW_FOCUS_EVENT_MASK     [1.4]
public final static longWINDOW_STATE_EVENT_MASK     [1.4]
public final static longWINDOW_EVENT_MASK
public final static longACTION_EVENT_MASK
public final static longADJUSTMENT_EVENT_MASK
public final static longITEM_EVENT_MASK
public final static longTEXT_EVENT_MASK
public final static longINPUT_METHOD_EVENT_MASK     [1.2]
public final static intRESERVED_ID_MAX
 
Konstruktoren
publicAWTEvent(Event event)
publicAWTEvent(Object source, int id)
 
Methoden
protected voidconsume()
public intgetID()
protected booleanisConsumed()
public StringparamString()
public StringtoString()


 

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]
Bitmaske für Mausrad-Bewegungs-Events.
public final static long WINDOW_FOCUS_EVENT_MASK     [1.4]
Bitmaske für Windows-Fokus-Events.
public final static long WINDOW_STATE_EVENT_MASK     [1.4]
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]
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.


 Inhaltsverzeichnis   Vorhergehendes Paket   Seite Zurück   Seite Vor   Nächstes Paket   Paketübersicht   Index

Copyright © 2002 dpunkt.Verlag, Heidelberg. Alle Rechte vorbehalten.