Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 436
Registered: ‎06-22-2010
My Device: na
My Carrier: blackberry developer

NavigationClick problem in BitmapField

I have a HFM where i am adding a BitmapField.HFM is NON_FOCUSABLE and BitmapField is FOCUSABLE.Both of them has navigationClick.But when i click  BitmapField the nagivation of HFM executes.But the same is not true for touchEvent.In touchEvent respective toucEvents are being executed,so whats the problem with navigationClick?

Regular Contributor
Posts: 52
Registered: ‎07-04-2011
My Device: Bold-3
My Carrier: Developer

Re: NavigationClick problem in BitmapField

If you want to use navigation click then you must have to make your HFM FOCUSABLE.

If you do not make your HFM focusable you can not use navigation click or touch event.

So you must have to make field Focusable.

 

Developer
Posts: 436
Registered: ‎06-22-2010
My Device: na
My Carrier: blackberry developer

Re: NavigationClick problem in BitmapField

But i want the navigation click of BitmapField should work instead of HFM

Developer
Posts: 201
Registered: ‎12-17-2010
My Device: Not Specified

Re: NavigationClick problem in BitmapField

ya but you add your bitmapfield in your HFM & your HFM in unfocusable so because of that HFM your navigation click did not work.

do one thing make your HFM focusable & remove that navigation click from it ..

Then you will get proper idea...

 

Regards,

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: NavigationClick problem in BitmapField

Focus doesn't really apply to Managers.  You can't have an unfocusable Manager only Fields.  However Managers do get events like navigationClick and touchEvent so that they can figure out which Field to give the event to.

 

In addition there are complications with the interaction of navigationClick and touchEvents - touch Events 'click' can be turned in navigationClick. 

 

In addition, you have to careful when you have non focusable Fields near focusable Fields and try to use touch events, touch Events can be supplied to Fields that are not 'in focus' because they are closer to the point being touched.  You may need to check that the touch event is in the Field.

 

That said I don't really understand the question.  Can you explain the problem again, perhaps with a diagram?

Highlighted
Developer
Posts: 436
Registered: ‎06-22-2010
My Device: na
My Carrier: blackberry developer

Re: NavigationClick problem in BitmapField

The question is simple.I have a Manager where i m adding fields.I have navigationClick on both the Manager and Field,coz my structure is dynamic,which means onclick attribute i will fetch from an XML.So when my Field have focus and i do click on it,instead of going to nagivation segment of Field its going to that of the Manager.So how to avoid it?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: NavigationClick problem in BitmapField

As I mentioned above, Managers do get events like navigationClick so that they can select the Field that has been 'clicked'.  That is how the process works. 

 

Try the following two tests:

 

1) Remove navigationClick from the Manager

2) Change your navigationClick to return super.navigationClick.

 

Tell us what happens.  In both cases does the Field get the 'click'?

 

What are you trying to achieve with navigationClick in the Manager anyway?