BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   ObjectListField and getSelectedIndex. Help! :) (http://www.blackberryforums.com/developer-forum/220613-objectlistfield-getselectedindex-help.html)

RyanRitten 02-25-2010 09:04 AM

ObjectListField and getSelectedIndex. Help! :)
 
Hey all,

I have created a ObjectListField which has a bunch of rows of data. I'd like to give a user the ability to delete a row whenever they "click" on a row OR press the "delete key" on a row.

I have it working perfectly when they click on a row (using getSelectedIndex to determine which row they clicked on).

However, getSelectedIndex on seems to work inside the ObjectListField's "navigationClick" method. My keylistener is outside this class and therefore doesn't have access to the method getSelectedIndex.

How do I determine which row they are currently on when they press the delete key?

Thanks so much in advance!

Ryan

Dougsg38p 02-25-2010 09:53 AM

Get rid of the key listener and override keyChar().


All times are GMT -5. The time now is 12:31 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.