public abstract class Event
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
consumed
If
true , the keyboard event was processed and consumed. |
private int |
id
Event type ID.
|
private Widget |
other
Companion widget, used for ENTER/LEAVE events.
|
private Widget |
source
Event source.
|
Constructor and Description |
---|
Event(Widget source,
int id)
Constructor.
|
Event(Widget source,
Widget other,
int id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Mark event as consumed.
|
int |
id()
Get event ID.
|
boolean |
isConsumed()
Check if event is already consumed.
|
Widget |
other()
Companion widget for this event.
|
Widget |
source()
Source widget for this event.
|
private final int id
private final Widget source
private final Widget other
private boolean consumed
true
, the keyboard event was processed and consumed.public Event(Widget source, int id)
source
- Event source.id
- Event type ID.public int id()
public Widget source()
public Widget other()
public void consume()
public boolean isConsumed()
true
if event is consumed.