I have implemented a list in开发者_开发问答 blackberry. How do I fire event 'on click' of the list?
The ListField
has a protected method that you can overwrite,
protected boolean navigationClick(int status, int time).
Within the method navigationClick
method you can get the selected list item (row) with the method getSelectedIndex().
So you'll have something such as:
protected boolean navigationClick(int status, int time) {
int sectionIndex = getSelectedIndex();
精彩评论