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

Reply
New Developer
saggy
Posts: 11
Registered: ‎03-25-2009
My Device: Not Specified

focus handling on custom managers

Hi,

 

  I've been trying to use a HorizontalFieldManager, and adding a handful of VerticalFieldManagers to it.  I'm using the VerticalFieldManager to act as a compound item.  E.g., think of a toolbar with items that include an image and text, each. I'm also trying to enable focus handling such that focus only goes to the VFMs, not the fields within each of the VFMs.

 

My approach was to custom extend the VerticalFieldManager, set style via super(FOCUSABLE), and override the drawFocus(…) method to then call drawHighlightRegion(…).

 

Problem is, drawFocus() is never called. :'(  Perhaps my approach is all wrong.  A manager is but a Field, no?  

 

Delighted to hear thoughts and/or alternative suggestions.  Thank you. 

 

Platform is JDE 4.2.1, default Sim (8800). 

Developer
haagmm
Posts: 178
Registered: ‎07-29-2008
My Device: Not Specified

Re: focus handling on custom managers

drawFocus is only called ever on a endpoint field.

 

Makes a subclassed focusable nullfield and add it to the vertical Manager overload drawFocus and then call the drawfocus of your subclassed manager.