0

I'm wondering if anyone has come across any sample code for creating a listField that has clickable rows.

I'm using Blackberry 5.0 API and I need to create of table of clickable rows. When the row is clicked then the user will be brought to a new screen showing more content.

Have looked around but I haven't found any good examples of using a ListField (any other component using the 5.0 API) to achieve this. Any suggestions?

Thanks

1 Answer 1

0

Override protected boolean navigationClick(int, int) to something like:

protected boolean navigationClick(int status, int time) {
    super.navigationClick(status, time);
    fieldChangeNotify(1);
}

And then attach a FieldChangeListener to it, and make sure you fieldChanged(int context) method checks for context==1 to listen for clicks. You might want to head to the BB Java Development forums for another resource, as this questions and many others have been answered on there and it might be useful for you.

1
  • Thanks . Got advice of the BB forum to use ListField and I have this working now, it seems to be working o.k.
    – user805703
    Jun 24, 2011 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.