黑莓列表中的触发事件
我已经在黑莓中实现了一个列表。如何触发列表的“点击”事件?
I have implemented a list in blackberry. How do I fire event 'on click' of the list?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我已经在黑莓中实现了一个列表。如何触发列表的“点击”事件?
I have implemented a list in blackberry. How do I fire event 'on click' of the list?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
ListField
有一个可以覆盖的受保护方法,在
navigationClick
方法中,您可以使用 getSelectedIndex() 方法获取选定的列表项(行)。所以你会得到类似这样的东西:
The
ListField
has a protected method that you can overwrite,Within the method
navigationClick
method you can get the selected list item (row) with the method getSelectedIndex().So you'll have something such as: