public abstract class Event
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 |
---|---|
int |
id()
Get event ID.
|
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
public Event(Widget source, int id)
source
- Event source.id
- Event type ID.