In Flex components can be comprised of sub-components.  The outermost 
component, which is most often the thing that you think of as the component and 
would normally set focus to (like a DataGrid) is an IFocusManagerComponent with 
focusEnabled=true.  All child sub-components that are IFocusManagerComponents 
have focusEnabled=false.  When the DataGrid wants to pass focus to child cell 
editors, it intercepts the keyFocusChange event and handles tabbing itself.

Other components are "containers" and do not directly receive focus and have 
tabChildren=true and tabEnabled=false

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On 
Behalf Of cksachdev
Sent: Sunday, February 08, 2009 9:14 PM
To: [email protected]
Subject: [flexcomponents] Problem with Keyboard navigation in custom component


Hi to all,

I have developed a few set of custom components and I am facing
problem with tab navigation. Here is a brief description about it.

Problem:
I have a class which extends UIComponent, inside it there are 2 more
UIComponent created at runtime (inside createChildren). These are used
as container for subchild components. You can assume a chatbox where
message box is inside a UIComponent and a textinput and a button is in
another UIComponent. Now problem is related to focus and
tabnavigation. It gets focus on the entire component, instead of
textinput, then on tab navigation I need to cycle it between,
textinput and button, but when it reaches on button, it should move to
next UIComponent available on screen, may be a button or any other
component available. How to know that a subcomponent is the last
component in "MY CUSTOM COMPONENT" and now focus rectangle should move
to next component available in DisplayList ?

Please point me to the resources(presentations/videos/documentation).
I have seen ACDS(Adobe Component Developer Summit) slides but not able
to get the point. Are those presentations being recorded ?

Looking forward to a solution :)

--
chetan
http://www.riageeks.com

Reply via email to