开发者

Selected lIstener on javax.microedition.lcdui.CustomItem (MIDP)

How can add a lis开发者_JAVA技巧tener 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:

http://download.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/javax/microedition/lcdui/CustomItem.html

See also these articles:

http://developers.sun.com/mobility/midp/ttips/customitem/

http://developers.sun.com/mobility/midp/ttips/customitemtraversal/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜