[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Tabbing out of a table with TableViewereditor on it

Hi,

You don't need to use a TableCursor (there a ready implementation which uses ownerdraw) and to support tabbing you don't even have to use all those fancy stuff. Simply set a new ColumnViewerEditor or you ColumnViewer and configure it given the style constants.

If you are in editing mode I'd argue that you don't have get out of the table using the Tabulator but stay inside. JFace is not attaching traverselistener to a control!

Tom

P. Simon schrieb:
Hi,

looking through the "new" apis for tableviewer keyboard navigation i came across this snippet: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet035TableCursorCellHighlighter.java?view=markup


My first problem with it is if you change the Selection type of the table to Single instead of MULTI after one tabbed into the table and navigated through it one can not tab out anymore meaning you are trapped on the table ).


Another point is that i am still missing a way to let the table headers gain focus ( necessary for accesability reasons since without that you cant sort columns with the keyboard and have to name the column title before reading out the cell for every cell you traverse ...) did something happen in this field? The last thing i have concerns with is the FocusCellHighlighter. Is there a basic implementation available, which basically does the Job the one supplied with the snippet does? And whats the reason for still having the org.eclipse.swt.custom Tablecursor when using jface?

Thanks,

Philipp



--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------