public class DesktopEventGenerator
extends ej.microui.event.EventGenerator
event dispatcher
of the desktop in order to send
additional events to the widgets.Modifier and Type | Field and Description |
---|---|
static int |
EVENT_TYPE
The DESKTOP event type.
|
Constructor and Description |
---|
DesktopEventGenerator() |
Modifier and Type | Method and Description |
---|---|
int |
buildEvent(int action)
Builds an event for the given action.
|
static int |
getAction(int event)
Returns the action held by the given desktop event.
|
int |
getEventType() |
void |
send(int action)
Sends a desktop event for the given action to the event handler of this event generator.
|
public static final int EVENT_TYPE
public int getEventType()
getEventType
in class ej.microui.event.EventGenerator
public int buildEvent(int action)
action
- the event action.public void send(int action)
This method is useful when other input mechanisms wish to simulate button actions.
action
- the event action.public static int getAction(int event)
event
- the desktop event.