BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-25-2010, 10:04 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2009
Model: 8300
PIN: N/A
Carrier: Rogers
Posts: 43
Post Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation ObjectListField and getSelectedIndex. Help! :)

Please Login to Remove!

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
Offline  
Old 02-25-2010, 10:53 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

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


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Southwire 41150S AC/DC Voltage Tester
$23.6
Southwire 41150S AC/DC Voltage Tester pictureAC DC Meter Ohm VOLT Multimeter Tester with LCD Display ( 600V Max AC/DC Voltage
$14.45
AC DC Meter Ohm VOLT Multimeter Tester with LCD Display ( 600V Max AC/DC Voltage picturebayite DC 5-120V 100A Mini Digital Current Voltage Amp Meter Gauge with Hall Eff
$22.49
bayite DC 5-120V 100A Mini Digital Current Voltage Amp Meter Gauge with Hall Eff pictureVoltage Tester - Non Contact Detector Pen Tool - No Contact Electrical Circuit V
$16.2
Voltage Tester - Non Contact Detector Pen Tool - No Contact Electrical Circuit V pictureFluke 80K-40 High Voltage Probe 1KV to 40KV
$89.0
Fluke 80K-40 High Voltage Probe 1KV to 40KV picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.