ContainerSkin.IndexFocusTraversalPolicy will return hidden and disabled
components
----------------------------------------------------------------------------------
Key: PIVOT-187
URL: https://issues.apache.org/jira/browse/PIVOT-187
Project: Pivot
Issue Type: Bug
Components: wtk
Affects Versions: 1.2, 1.1
Reporter: Todd Volkert
Assignee: Todd Volkert
Fix For: 1.3
Use case: create a CardPane with two cards and selectedIndex==2, where the
second card is a TextInput. Now call cardPane.requestFocus(). You'd expect
the TextInput to gain the focus, but it doesn't.
The reason is that the index focus traversal policy used by the card pane (and
most containers for that matter) will return you the first card because it's at
index 0, but it fails to take into account the fact that the first card is
invisible and thus not focusable. CardPane then calls requestFocus() on that
invisible card, which ends up doing nothing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.