开发者

BlackBerry objectlistfield development

开发者 https://www.devze.com 2023-04-06 07:48 出处:网络
How to get the i开发者_StackOverflowndex of ObjectListField in BlackBerry so that on clicking one item in the object list ,we can retrieve the position of an item?Use the following code for getting th

How to get the i开发者_StackOverflowndex of ObjectListField in BlackBerry so that on clicking one item in the object list ,we can retrieve the position of an item?


Use the following code for getting the index :

int index =  yourObjectListField.getSelectedIndex();

And the following code to get the text:

String selectedText += yourObjectListField.get(yourObjectListField, yourObjectListField.getSelectedIndex());
0

精彩评论

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

关注公众号