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

Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Field Focus

I have a horizontal manager that contains 2 fields. When I invoke field.setFocus(), it calls the manager onUnfocus() method and the manager.isFocus() returns false and manager.getFieldWithFocus() returns null.

Is this behavior correct? I thought  that a manager has a focus as long as one of its fields has  focus.


The manager that I have is a custom manager that extends the HorizontalFieldManager.


Any clue?



Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: Field Focus

[ Edited ]

Try to use getLeafFieldWithFocus() instead of getFieldWithFocus()


Note that Manager is a descendant of Field class.

Message Edited by rafo on 09-05-2008 01:24 PM
if your issue solved set "Solution" mark at the relevant post