Package ilcd
Interface OnTouchListener
abstract void onTouch(TouchEvent event)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Parameter | Description |
---|---|
TouchEvent | needs a TouchEvent object |
The onTouch() method is invoked when a touch event occurs.
Example
// within the constructor of a application class
// a new touch field is defined and created
...
Control.setCursorPosition(100, 50);
Touch.setTouchFieldReportingEnabled(true);
EventManagement.getTouchEventDispatcher().addListener(OnTouchListener);
Touch.setTouchFieldWidth(100);
Touch.setTouchFieldHeight(50);
Touch.createDefineTouchField(1, 0);
...
// new implementation of the onTouch() method
// within the application class
public void onTouch(TouchEvent event)
{ ...
See also:
Touch.setTouchFieldReportingEnabled(boolean)
EventManagement.getTouchEventDispatcher().addListener()
Touch.setTouchFieldWidth(int)
Touch.setTouchFieldHeight(int)
Touch.createDefineTouchField(int, int)
Copyright © demmel products gmbh. All rights reserved.