In table editing questions [message #1274275] |
Fri, 21 March 2014 04:17  |
Eclipse User |
|
|
|
I have a TableField where all columns have the editable property set to true.
I have five IntegerColumns and one BooleanColumn in my table. When I click into the first IntegerColumn cell I can then move from cell to cell using TAB until I reach the last IntegerColumn. When I then press TAB the focus moves back to the first IntegerColumn of the row, skipping the BooleanColumn containing the checkbox. The only way I can change the value of the BooleanColumn is using the mouse.
Is this intended behaviour or am I missing something?
Another question is the following: In Bug 398283 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=398283) the possibility to have validateOnAnyKey on all fields was added and in Bug 418582 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=418582) the possibility to navigate to the next FormField was added.
Will the validateOnAnyKey also work on Column cells? And is there a possibility to programmatically move the focus to a specific column/cell of a row/table?
|
|
|
|
Re: In table editing questions [message #1277715 is a reply to message #1277308] |
Wed, 26 March 2014 07:09   |
Eclipse User |
|
|
|
Jeremie Bresson wrote on Tue, 25 March 2014 21:40Urs Beeli wrote on Fri, 21 March 2014 09:17When I then press TAB the focus moves back to the first IntegerColumn of the row, skipping the BooleanColumn containing the checkbox. The only way I can change the value of the BooleanColumn is using the mouse
I am not sure if the Boolean Column can be edited (with a field like the other columns). This kind of limitation goes in the same direction like the error marker in boolean column mentioned here.
Thanks. In that case we'll probably have to use a CodeType<Boolean> and use a SmartColumn instead of the checkbox.
Jeremie Bresson wrote on Tue, 25 March 2014 21:40
Urs Beeli wrote on Fri, 21 March 2014 09:17Will the validateOnAnyKey also work on Column cells?
With bug 398283, validateOnAnyKey was added to Number and Decimal fields. There is also a getConfiguredValidateOnAnyKey on the number column. Isn't it?
You are right of course. I had looked but must have missed it. Looking again I saw the property.
Jeremie Bresson wrote on Tue, 25 March 2014 21:40Urs Beeli wrote on Fri, 21 March 2014 09:17And is there a possibility to programmatically move the focus to a specific column/cell of a row/table?
You should try it. I am not sure how it was implemented. I am not sure how
* Control#traverse(SWT.TRAVERSE_TAB_NEXT)
* Control#traverse(SWT.TRAVERSE_TAB_PREVIOUS)
will react in a table...
I'll try it out when I next find a little time. I'll get back to you on this when I've tried it out.
[Updated on: Wed, 26 March 2014 07:10] by Moderator
|
|
|
|
|
Re: In table editing questions [message #1279023 is a reply to message #1278553] |
Fri, 28 March 2014 02:13  |
Eclipse User |
|
|
|
Hi Matthias,
I didn't mention the boolean column problem in my last post because Andy has told me that he had already fixed it. I'm not sure about the timing (i.e. if you created your bug after he fixed the issue or if your bug was the reason for him fixing it). Thanks in any case!
|
|
|
Powered by
FUDForum. Page generated in 0.46966 seconds