GeezerVison is showing docs.oracle.com — AWTEvent (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
-
-
Constructor Summary
Constructors
| Constructor |
Description |
AWTEvent(Event event) |
Constructs an AWTEvent object from the parameters of a 1.0-style event.
|
AWTEvent(Object source,
int id) |
Constructs an AWTEvent object with the specified source object and type.
|
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
protected void |
consume() |
Consumes this event, if this event can be consumed.
|
int |
getID() |
Returns the event type.
|
protected boolean |
isConsumed() |
Returns whether this event has been consumed.
|
String |
paramString() |
Returns a string representing the state of this Event.
|
void |
setSource(Object newSource) |
Retargets an event to a new source.
|
String |
toString() |
Returns a String representation of this object.
|
-
-
Field Detail
-
consumed
protected boolean consumed
Controls whether or not the event is sent back down to the peer once the
source has processed it - false means it's sent to the peer; true means
it's not. Semantic events always have a 'true' value since they were
generated by the peer in response to a low-level event.
- See Also:
consume(),
isConsumed()
-
Constructor Detail
-
AWTEvent
public AWTEvent(Object source,
int id)
Constructs an AWTEvent object with the specified source object and type.
- Parameters:
source - the object where the event originated
id - the event type
-
Method Detail
-
getID
public int getID()
Returns the event type.
-
paramString
public String paramString()
Returns a string representing the state of this Event.
This method is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. The returned string may be empty but may not be
null.
- Returns:
- a string representation of this event
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|