Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » tab between columns in a table tree
tab between columns in a table tree [message #462618] Sat, 15 October 2005 02:46 Go to next message
Carolyn Duby is currently offline Carolyn DubyFriend
Messages: 30
Registered: July 2009
Member
When you press the tab key in a TableTree, the next control gets focus
rather than the next column in the table. Is there any way to setup a
TableTree such that tab takes you to the next column in the table?

Thanks
Carolyn
Re: tab between columns in a table tree [message #462642 is a reply to message #462618] Sun, 16 October 2005 13:20 Go to previous message
Emil van Galen is currently offline Emil van GalenFriend
Messages: 12
Registered: July 2009
Junior Member
Unfortunately there is no default tab implementation in SWT/JFace. For our project we created our own for the JFace TableViewer using SWT TraverseListener's.
Our implementation allows you to tab betreen the cell editors of the table. Using a TraverseListener on the controls of all editors it was possible to create it. However there are some issues we had.

First when you tab to the next (or previous with SHIFT-TAB) cell editor you need to force an apply changes on the open cell editor. I'm not sure if this is still in isue, but if it is you can call refresh(null) to force an apply changes before you call editElement(Object, int) to start editing the next cell editor.

Second you need to set the 'doit' instance variable of the TraverseEvent you receive in the listener method to false. Otherwise the tab you pressed will also be handled by the cell editor control.
Previous Topic:How to send/emulate a key to a shell?
Next Topic:Changing selection color in table?
Goto Forum:
  


Current Time: Fri Mar 29 09:36:47 GMT 2024

Powered by FUDForum. Page generated in 0.02105 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top