Package javax.events
Class EventManagement
extends Object
With the class EventManagement it is possible to register several timer, touch or comm events.
Event management has to be started with EventManagement.start() before any event can be registered.
Note that when using touch events it's not necessary to call this method because the Touch.setTouchFieldReportingEnabled(boolean) method makes this
call internally.
Note
- Please note that in order to receive touch and keyboard events the abstract class Application
has to be extended (create a class derived from Application). This ensures that touch and keyboard evenets will be
collected periodically and the corresponding handler methods will be executed in the main thread (for comm events
this is not necessary). See e.g. the touch event samples
(iLCD Manager File Tab->New) and
Application Class Design
on how to do that.
- Don't start the event thread (EventManagement.start()) before
main().
Event listeners (or handlers) can be added as follows:
_INSERT_CONSTRUCTOR_ENTRY_HERE_
Public Methods
Methods inherited from java.lang.Object
_INSERT_INHERITED_METHOD_ENTRY_HERE_
Public Fields
- static final int EV_Ethernet
- static final int EV_I2C
- static final int EV_KEYBOARD
- static final int EV_ROTARY
- static final int EV_SPI
- static final int EV_SWTIMERS
- static final int EV_TOUCH
- static final int EV_UART
- static final int EV_USB
_INSERT_FIELDS_ENTRY_HERE_
Copyright © demmel products gmbh. All rights reserved.