开发者

BlackBerry objectlistfield development

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜