Selected lIstener on javax.microedition.lcdui.CustomItem (MIDP)
题
How can add a listener to a javax.microedition.lcdui.CustomItem so that when it is selected an event is fired ?
Thanks
解决方案
There are no listeners. What you do is override various low-level input events like pointerPressed() or keyPressed(). See the CustomItem javadocs for details, there are sections describing how pointer and keyboard input is handled:
See also these articles:
http://developers.sun.com/mobility/midp/ttips/customitem/
http://developers.sun.com/mobility/midp/ttips/customitemtraversal/index.html
不隶属于 StackOverflow