public abstract class AbstractEventAdapter extends Object
UiHandlerEvent. It will adapt
from the native events to UiHandlerEvent.onEvent(UiEvent) in the event
handler given at construction.| Modifier and Type | Field and Description |
|---|---|
private EventType |
programmaticEventType |
private UiHandlerEvent |
sender
The event sender.
|
private UiFeatureEvent |
source
The source of the events (UiWidget).
|
| Constructor and Description |
|---|
AbstractEventAdapter(UiFeatureEvent source,
UiHandlerEvent sender)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fireEvent(EventType type)
Fires an event of the given
EventType. |
void |
setProgrammaticEventType(EventType type)
We can NOT prevent all native UI toolkits from firing events (e.g.
|
private final UiFeatureEvent source
private final UiHandlerEvent sender
private EventType programmaticEventType
setProgrammaticEventType(EventType)public AbstractEventAdapter(UiFeatureEvent source, UiHandlerEvent sender)
source - is the source of the events (typically UiWidget).sender - is the sender of events (an adapter that delegates to the individual handlers/listeners).public void fireEvent(EventType type)
EventType.type - is the EventType to fire.public void setProgrammaticEventType(EventType type)
programmatically setting
focus. So we set the EventType before we programmatically invoke the action that will cause the
native event.type - is the expected EventType used for detection to prevent concurrent user-events to
interfere.Copyright © 2001–2016 mmm-Team. All rights reserved.