Tabbing in custom components in a datagrid

View: New views
1 Messages — Rating Filter:   Alert me  

Tabbing in custom components in a datagrid

by sasuke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,

Recently I've been struggling with a issue which involves datagrid and custom item renderers.

Basically what I have is a item renderer which is also used as an item editor. It extends HBox and contains a checkbox and text input field. My end goal is simple: to ensure that proper tabbing order is preserved when the custom component gets the focus which is currently not happening i.e. when the second column loses focus, the focus should come to check box and then to the text input. Here is what I have till now:

The main application file: http://pastie.org/682974
The custom renderer: http://pastie.org/682975

*Any* suggestions/workarounds/solution appreciated.

TIA,
sasuke