Skip to main content

getNextFocus* always returns null?

2 replies [Last post]
asumma66061
Offline
Joined: 2007-04-12
Points: 0

I have the 6/25 drop but every time I call getNextFocus* from a component (or the parent container) I get null back.

Anyone else seeing similar issues? I'm expecting this method to return the next component that should get focus if the user were to move up/down/left/right.

Thanks!
Aaron

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
asumma66061
Offline
Joined: 2007-04-12
Points: 0

This works as expected IF you set the next focus object manually.

Is this the intended behavior? I was thinking I could query to determine which component is next in focus order. I have a component that wants to handle left/right traversal internally, but up/down should continue as normal.

chen

Hi,
The LWUIT Form tries to find the correct focus navigation between
different Components, this algorithm may fail to create the desired
navigation by calling to the setNextFocus* you can implicitly ask the
focus to move from X Component to Y Component.
If you haven't called to setNextFocus* yourself the getters will return
null;

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> This works as expected IF you set the next focus object manually.
>
> Is this the intended behavior? I was thinking I could query to determine which component is next in focus order. I have a component that wants to handle left/right traversal internally, but up/down should continue as normal.
> [Message sent by forum member 'asumma66061' (asumma66061)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283402
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net