Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Accessibility issue in a tableViewer(Not able to get the focus on the combo box inside a table using keyboard)
Accessibility issue in a tableViewer [message #638685] Fri, 12 November 2010 08:08 Go to next message
Madhushree  S is currently offline Madhushree SFriend
Messages: 20
Registered: September 2010
Junior Member
Scenario 1 :In a wizard there is a tableViewer with 3 columns.
The 1st column is editable cell.
The 2nd column is a combo box.
The 3nd column is also a combo box.

Scenario 2:
When I navigate inside the table using keyboard,the combo box does not come to focus and doesnot open the dropdown.

How to get the focus on the combo box in column 2 & 3 to open the dropdown so that the user can select the items using keyboard?

Can you point me to a solution to navigate between 3 columns using TAB key?
The entire navigation in a table should be done using keyboard.Please hint the solution.

Thanks!
Madhu
Re: Accessibility issue in a tableViewer [message #638885 is a reply to message #638685] Fri, 12 November 2010 21:59 Go to previous messageGo to next message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

I tried this with a simple SWT snippet consisting of a Table and TableEditors and I'm able to navigate around using the keyboard. Here is the snippet I tried--> Snippet126. Does it work for you? You could post a sample snippet that shows the problem.


Lakshmi P Shanmugam
Re: Accessibility issue in a tableViewer [message #639320 is a reply to message #638885] Tue, 16 November 2010 04:05 Go to previous messageGo to next message
Madhushree  S is currently offline Madhushree SFriend
Messages: 20
Registered: September 2010
Junior Member
TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(
				mTableViewer, new FocusCellOwnerDrawHighlighter(mTableViewer));
		ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(
				mTableViewer) {
			protected boolean isEditorActivationEvent(
					ColumnViewerEditorActivationEvent event) {
				return event.eventType == ColumnViewerEditorActivationEvent.MOUSE_CLICK_SELECTION
						|| event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL
						|| (event.eventType == ColumnViewerEditorActivationEvent.KEY_PRESSED && event.keyCode == ' ')
						|| event.eventType == ColumnViewerEditorActivationEvent.PROGRAMMATIC;

			}
		};
		TableViewerEditor.create(mTableViewer, focusCellManager, actSupport,
				ColumnViewerEditor.KEYBOARD_ACTIVATION);


with the above code, the focus comes on the combo box but navigation to items in the combo box happens in mutiple steps. is there a better solution to navigate to all items in the combo box?

Thanks,
Madhu!
Re: Accessibility issue in a tableViewer [message #639334 is a reply to message #639320] Tue, 16 November 2010 07:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Yes you can pass informations to the ComboCellEditor that it is showing
the drop down when it gets activated.

Take a look at the JavaDoc I don't know it OTOH.

Tom

Am 16.11.10 05:05, schrieb Madhu:
>
> TableViewerFocusCellManager focusCellManager = new
> TableViewerFocusCellManager(
> mTableViewer, new
> FocusCellOwnerDrawHighlighter(mTableViewer));
> ColumnViewerEditorActivationStrategy actSupport = new
> ColumnViewerEditorActivationStrategy(
> mTableViewer) {
> protected boolean isEditorActivationEvent(
> ColumnViewerEditorActivationEvent event) {
> return event.eventType ==
> ColumnViewerEditorActivationEvent.MOUSE_CLICK_SELECTION
> || event.eventType ==
> ColumnViewerEditorActivationEvent.TRAVERSAL
> || (event.eventType ==
> ColumnViewerEditorActivationEvent.KEY_PRESSED && event.keyCode == ' ')
> || event.eventType ==
> ColumnViewerEditorActivationEvent.PROGRAMMATIC;
>
> }
> };
> TableViewerEditor.create(mTableViewer, focusCellManager,
> actSupport,
> ColumnViewerEditor.KEYBOARD_ACTIVATION);
>
> with the above code, the focus comes on the combo box but navigation to
> items in the combo box happens in mutiple steps. is there a better
> solution to navigate to all items in the combo box?
>
> Thanks,
> Madhu!
Re: Accessibility issue in a tableViewer [message #639850 is a reply to message #639334] Thu, 18 November 2010 05:55 Go to previous message
Madhushree  S is currently offline Madhushree SFriend
Messages: 20
Registered: September 2010
Junior Member
When the focus is on the Combo cell, the drop down can be obtained with the "Alt-Down" key.

When the drop down is opened,i can navigate to the next adjacent element and the combo box cell deactivates.
So, if the control is on the 1st element in the list and I have to go to 5th element in the list, i need to activate the combo cell 5 times and navigate.

Is there a way to activate the combo only once and navigate easily?
Previous Topic:Re: SWT control preferred, minimum and maximum sizes
Next Topic:ScrolledComposite splits the screen vertically and content is displayed in the right half
Goto Forum:
  


Current Time: Thu Mar 28 15:28:35 GMT 2024

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

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

Back to the top