Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 7085 Details for
Bug 21771
Accessibility for Buttons ignored in JAWS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
AccessibleButtonTest, sent to Window-Eyes
AccessibleButtonTest.java (text/plain), 1.82 KB, created by
Carolyn MacLeod
on 2003-12-08 13:16:09 EST
(
hide
)
Description:
AccessibleButtonTest, sent to Window-Eyes
Filename:
MIME Type:
Creator:
Carolyn MacLeod
Created:
2003-12-08 13:16:09 EST
Size:
1.82 KB
patch
obsolete
>package accessibility; > >import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.widgets.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.accessibility.*; > >public class AccessibleButtonTest { > static Display display; > static Shell shell; > static Button button, overrideButton, graphicButton, overrideGraphicButton; > static Image graphic; > > public static void main(String[] args) { > display = new Display(); > shell = new Shell(display); > shell.setLayout(new GridLayout(2, true)); > shell.setText("Test App"); > > button = new Button(shell, SWT.PUSH); > button.setText("Text Button 1"); > button.setToolTipText("Text Button 1 ToolTip"); > > overrideButton = new Button(shell, SWT.PUSH); > overrideButton.setText("Text Button 2"); > overrideButton.setToolTipText("Text Button 2 ToolTip"); > overrideButton.getAccessible().addAccessibleListener(new AccessibleAdapter() { > public void getName(AccessibleEvent e) { > e.result = "This is the get_accName for Text Button 2"; > } > }); > > graphic = new Image(display, AccessibleButtonTest.class.getResourceAsStream("graphic.bmp")); > graphicButton = new Button(shell, SWT.PUSH); > graphicButton.setImage(graphic); > graphicButton.setToolTipText("Graphic Button 1 ToolTip"); > > overrideGraphicButton = new Button(shell, SWT.PUSH); > overrideGraphicButton.setImage(graphic); > overrideGraphicButton.setToolTipText("Graphic Button 2 ToolTip"); > overrideGraphicButton.getAccessible().addAccessibleListener(new AccessibleAdapter() { > public void getName(AccessibleEvent e) { > e.result = "This is the get_accName for Graphic Button 2"; > } > }); > > shell.pack(); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) display.sleep(); > } > graphic.dispose(); > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 21771
: 7085