|
From: Thomas F. (JIRA) <no...@sp...> - 2009-09-24 11:42:25
|
changing FocusTraversalOrder has no effect if a if TableLayoutBuilder creates cells without components
------------------------------------------------------------------------------------------------------
Key: RCP-613
URL: https://jira.springsource.org/browse/RCP-613
Project: Spring Rich Client Project
Issue Type: Bug
Affects Versions: 1.1.0
Environment: Windows XP, Java 1.6.0_16, Mac Os, Java 1.6.0_13
Reporter: Thomas Fahrmeyer
Assignee: Lieven Doclo
Priority: Minor
Using a FocusTraversalOrder set on the TableLayoutBuilder does not behave correctly if the form contains cells with no components. These cells
can be created by just using layoutBuilder.cell() and used as, for instance, placeholders.
In the Method TableLayoutBuilder.setFocusTraversalOrder(int traversalOrder) null-Elements are added in the focusOrder-List by focusOrder.add(currentCell.getComponent()). That causes a catched Nullpointer Exception in CustomizableFocusTraversalPolicy.customizeFocusTraversalOrder() which is called from TableLayoutBuilder.installFocusOrder(list). The client property with the ordered list
of components will not be set and focus traversal will not work as expected.
Fix: Don't add null-elements into the focusOrder List. A Workaround is to create placeholder cells with TableLayoutBuilder.cell(new JPanel()) instead of builder.cell().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|