Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 289199 - [Accessibility] Label preceding Table not read out by screen reader
Summary: [Accessibility] Label preceding Table not read out by screen reader
Status: CLOSED DUPLICATE of bug 320062
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Carolyn MacLeod CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-11 08:21 EDT by Barry Dow CLA
Modified: 2012-03-21 14:48 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barry Dow CLA 2009-09-11 08:21:25 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: 

According to this page, http://www.eclipsezone.com/eclipse/forums/t96096.html, screen readers should read out Labels preceding Tables. 

I have found this is not happening using the following code example and JAWS 10: 

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;

public class TableExample {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Display d = new Display();
		Shell shell = new Shell(d);
		
		FillLayout fill = new FillLayout();
        fill.type = SWT.VERTICAL;
		fill.marginHeight = 0;
		fill.marginWidth = 0;
        shell.setLayout(fill);

		Composite panel = new Composite(shell, SWT.NONE);
		GridLayout containerGridLayout = null;			
		containerGridLayout = new GridLayout();
		containerGridLayout.numColumns = 3;
		containerGridLayout.marginTop = 5;
		containerGridLayout.marginRight = 5;
		containerGridLayout.marginLeft = 5;
		panel.setLayout(containerGridLayout);

		Label label = new Label(panel,SWT.NONE);						
		GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
		gridData.horizontalSpan = 3;
		label.setLayoutData(gridData);
		label.setText("Label preceding Table:"); //$NON-NLS-1$
		
		Table table = new Table(panel, SWT.BORDER);
		table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
		TableItem ti = new TableItem(table, SWT.LEFT);
        ti.setText("Table item 1");
		TableItem t2 = new TableItem(table, SWT.LEFT);
        t2.setText("Table item 2");
        
    	shell.pack();
    	shell.open ();
    	while (!shell.isDisposed ()) {
    		if (!d.readAndDispatch ()) d.sleep ();
    	}
    	d.dispose ();

	}

}




Reproducible: Always
Comment 1 Carolyn MacLeod CLA 2012-03-21 14:48:27 EDT

*** This bug has been marked as a duplicate of bug 320062 ***