BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-17-2009, 08:57 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2005
Model: 8100
Carrier: T-Mobile Germany
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Trackball movement in ObjectListField

Please Login to Remove!

Hi,

I have created a standard ObjectListField and want to catch the horizontal trackball movement, when the field is active, i.e. when an item is selected and the trackball is moved to the right or moved to the left.

Can anybody help?

Thanks!

Regards,
Malte
Offline  
Old 09-17-2009, 09:43 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

Have you tried overriding navigationMovement()?
Offline  
Old 09-17-2009, 01:25 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2005
Model: 8100
Carrier: T-Mobile Germany
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

thanks for the answer. I added

protected boolean navigationMovement(int dx,int dy, int status, int time)

to the MainScreen class and it seems to be working - for all fields. Is it possible to override navigationMovement only for the one ObjectListField?

Second question: do I have to call super() in order to execute code of the original navigationMovement? If yes, how? Sorry, today is my first try to code in Java - might be a stupid question.

Thanks!
Offline  
Old 09-17-2009, 04:09 PM   #4 (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

From the Javadocs for the Field class (which is the base class for all fields):

navigationMovement
protected boolean navigationMovement(int dx,
int dy,
int status,
int time)Invoked when a navigational motion occurs.
Offline  
Old 09-18-2009, 03:36 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2005
Model: 8100
Carrier: T-Mobile Germany
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks!
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

GENUINE OEM IBM EASYSTRIKE LIFT OFF TAPE CASSETTES #1337765 LOT of 7 d18
$39.99
GENUINE OEM IBM  EASYSTRIKE  LIFT OFF TAPE CASSETTES #1337765 LOT of 7 d18 pictureNew OEM IBM Selectric III Typewriter Typing Element-Advocate
$19.99
New OEM IBM Selectric III Typewriter Typing Element-Advocate pictureNew OEM IBM Selectric III Typewriter Typing Element-Delegate
$19.99
New OEM IBM Selectric III Typewriter Typing Element-Delegate pictureNew OEM IBM Selectric III Typewriter Typing Element-Pica
$22.99
New OEM IBM Selectric III Typewriter Typing Element-Pica pictureIBM / Infoprint 3900 / 4000 Enhanced Printing Toner, 57P1888 (OEM / NEW)
$295.95
IBM / Infoprint 3900 / 4000 Enhanced Printing Toner, 57P1888 (OEM / NEW) picture






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