Bug 10760 - Accessibility does not work for a Table in JAWS
Summary: Accessibility does not work for a Table in JAWS
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks: 10181 10190 10191
  Show dependency tree
 
Reported: 2002-03-05 09:17 EST by Tod Creasey CLA
Modified: 2002-05-13 14:48 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-03-05 09:17:44 EST
If I have the following class running and I select an element in the Table JAWS 
does not read the Table name even though inspect32 gets the name of the Table 
right. This is different than the list behaviour where is does pick it up.

import org.eclipse.swt.SWT;
import org.eclipse.swt.accessibility.*;
import org.eclipse.swt.widgets.*;
/*
 * (c) Copyright 2001 MyCorporation.
 * All Rights Reserved.
 */
/**
 * @version 	1.0
 * @author
 */
public class TableLabelTest {

	public static void main(String[] args) {
		Display display = new Display();
		Shell shell = new Shell(display);

		Label label = new Label(shell, SWT.NONE);
		label.setText("Title");
		label.setBounds(0, 0, 200, 20);

		final Table mainTable =
			new Table(shell, SWT.SINGLE | SWT.BORDER | 
SWT.FULL_SELECTION);
		mainTable.getAccessible().addAccessibleListener(new 
AccessibleAdapter() {
			public void getName(AccessibleEvent e) {
				if (e.childID != ACC.CHILDID_SELF) {
					e.result = mainTable.getItem(e.childID -
 1).getText();
				} else {
					e.result = "The Table";
				}
			}
		});

		TableItem item1 = new TableItem(mainTable, SWT.NULL);
		item1.setText("item1");

		TableItem item2 = new TableItem(mainTable, SWT.NULL);
		item2.setText("item2");

		TableItem item3 = new TableItem(mainTable, SWT.NULL);
		item3.setText("item3");

		mainTable.setBounds(0, 20, 200, 200);
		
		Text text = new Text(shell, SWT.NONE);
		text.setText("Tabby");
		text.setBounds(0, 220, 200, 20);

		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
	}
}
Comment 1 Tod Creasey CLA 2002-03-05 09:52:57 EST
There is a similar problem with push Buttons only returning the label but not 
the IAccessible result although this shows up using inspect32.
Comment 2 Tod Creasey CLA 2002-03-06 10:31:15 EST
Also an issue for Trees
Comment 3 Tod Creasey CLA 2002-03-14 13:30:17 EST
Platform limitation. Can be deferred.
Comment 4 Steve Northover CLA 2002-05-13 14:48:35 EDT
Platform behavior.