Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to enable keybord nav with celleditor
how to enable keybord nav with celleditor [message #445232] Fri, 29 October 2004 11:54 Go to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
Is there any way to enable keyboard navigation in a table build with
the suggested jface-combo of
- tableviewer
- contentprovider
- labelprovider
- celleditor
- cellmodifier ?

My first idea was to use a tableCursor, but i dont know how to activate
the celleditor in a given row/column.

The behaviour should be similar to excel:
up/down key activates a different cell editor
all changes are safed immediately (no ENTER required)

Yves
Re: how to enable keybord nav with celleditor [message #445272 is a reply to message #445232] Mon, 01 November 2004 13:21 Go to previous message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
I've now found out how to activate the celleditor in a given row/column:
TableViewer.editElement(Object element, int column)

But there is one problem left:
Where can I atach a KeyListener or TraverseListener to change the
selection by arrow-key ??
All key events seem to go directly to the celleditor, but with
(tableViewer.getCellEditors())[0].getControl().addKeyListene r(myKeyListener);
i dont get any results.

The cellEditor seems to completly consume the events.

Yves


> Is there any way to enable keyboard navigation in a table build with
> the suggested jface-combo of
> - tableviewer
> - contentprovider
> - labelprovider
> - celleditor
> - cellmodifier ?
>
> My first idea was to use a tableCursor, but i dont know how to activate
> the celleditor in a given row/column.
>
> The behaviour should be similar to excel:
> up/down key activates a different cell editor
> all changes are safed immediately (no ENTER required)
>
> Yves
>
>
Previous Topic:java.lang.IllegalAccessError
Next Topic:org.eclipse.jface.util.Assert$AssertionFailedException Caused by Display == null
Goto Forum:
  


Current Time: Tue Oct 20 07:36:12 GMT 2020

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

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

Back to the top