There aren't any hooks for replacing the current FocusManager.

 

By definition, the focus manager does a depth first search for focusable
entities so if you have:

 

<VBox>

            <HBox>

                        <Button />

                        <Button />

            </HBox>

            <HBox>

                        <Button />

                        <Button />

            </HBox>

</VBox>

 

The buttons' will get focus in order.

 

If you don't particularly like that, you can set tabIndices, but that
can be hard to manage in a dynamic environment.

 

You can write your own focus handler and shut down the current focus
manager, but there aren't any examples or docs as far as I know.

 

Accordion has much of the tabbing behavior you want.  You could turn off
tabChildren in the other sub-containers until you see an arrow key.

 

-Alex

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of superabe superabe
Sent: Monday, August 06, 2007 8:00 PM
To: [email protected]
Subject: [flexcomponents] Custom FocusManager

 

I have a custom component extending VBox that contains n number of
children.

I'd like the tabbing behaviour to be such that once I set focus on a
child the tab cycles through the sub-children of that child (using the
tab indices on the sub-children) 
It should continue to do so till an arrow key press changes the focus to
another child

The docs on FocusManager indicate each instance of the FocusManager
manages its own tab loop, leading me to believe that I need to create a
FocusManager for each child (VBox). 
The problem is, I cant see any examples on how I could set this up.

Any ideas?

TIA

- superabe

 

Reply via email to