[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Image label accessibility
|
- From: Mike Higginbotham <higginmi@xxxxxxxx>
- Date: Mon, 20 Oct 2008 16:43:31 -0400
- Newsgroups: eclipse.platform.swt
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.17 (Windows/20080914)
I have a Label that contains an image followed by a read-only Text
widget. When I tab to the Text box, JAWS 8 says "Graphic <some#> <Text
widget's text>". I have set the text and tool tip on the label and added
an AccessibleAdapter to it with getName and getDescription but JAWS does
not say any of those. It just says "Graphic <some#>" for the Label. The
following is the approximate code I am using:
imageLabel = toolkit.createLabel(diskHealthSummary, null, SWT.NONE);
imageLabel.setImage(pendingImage);
imageLabel.setText("Text for image label");
imageLabel.setToolTipText("Tool tip for image label");
imageLabel.getAccessible().addAccessibleListener(new
AccessibleAdapter() {
@Override
public void getDescription(AccessibleEvent e) {
e.result = "Description for image label";
}
@Override
public void getName(AccessibleEvent e) {
e.result = "Name for image label";
}
});
Am I doing something wrong? Is this an Eclipse bug? A JAWS bug?
Thanks,
Mike