public abstract class GenericEventGenerator extends EventGenerator
Generic communication to receive events.
Constructor and Description |
---|
GenericEventGenerator() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
eventReceived(int event)
Called by the default implementation of
#eventReceived(int, EventHandler) when a custom event has been
received from the native world. |
protected abstract void |
eventsReceived(int[] events)
Called by the default implementation of
#eventReceived(int, EventHandler) when a custom event has been
received from the native world. |
abstract void |
setProperty(String name,
String value)
Called at startup to configure the event generator with the specific properties set in the MicroUI XML file.
|
addToSystemPool, get, get, get, getEventHandler, getEventType, getId, removeFromSystemPool, sendEvent, setEventHandler
public abstract void setProperty(String name, String value)
name
- the property namevalue
- the property valueprotected abstract void eventReceived(int event)
#eventReceived(int, EventHandler)
when a custom event has been
received from the native world. The event contains only one 32-bit value.event
- the 32-bit custom event value.protected abstract void eventsReceived(int[] events)
#eventReceived(int, EventHandler)
when a custom event has been
received from the native world. The event contains several 32-bit values.events
- the 32-bit custom event values.eventReceived(int)