Speaking (Accessibility) --->RE: [Ibm-netrexx] Fwd: [platform-dev] Re: [nbdt] Announcing the QuorumProgramming Language

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Speaking (Accessibility) --->RE: [Ibm-netrexx] Fwd: [platform-dev] Re: [nbdt] Announcing the QuorumProgramming Language

measel
What you want is the javax.accessibility.Accessible interface  ( what a name ).

AccessibleContext() defines two methods that can be used to provide accessible information:

    * setAccessibleName(String name) sets the name to associate with a given Accessible object. Typically, an assistive reader will present this name whenever a component receives focus.

    * setAccessibleDescription(String description) sets the description to associate with a given Accessible object. Typically, an assistive reader will present this description when the user asks for more details about a component.

/* snippet from crumbyApplet.nrx  */

import java.swing.

btnApply = Button("Apply")
btnApply.addActionListener(this)
btnApply.setName("selectButton")

btnApplyCtx = btnApply.getAccessibleContext()
btnApplyCtx.setAccessibleName("Apply Button")
btnApplyCtx.setAccessibleDescription("Activate to commit changes and continue")

btnApply.setToolTip("Commit changes")
________________________________________
From: [hidden email] [[hidden email]] on behalf of Davis, James (NIH/CIT) [E] [[hidden email]]
Sent: Friday, February 03, 2012 9:07 AM
To: IBM Netrexx
Subject: RE: [Ibm-netrexx] Fwd: [platform-dev] Re: [nbdt] Announcing the        QuorumProgramming Language

Actually, something like that would be handy for disabled users.  In the days of OS/2 I considered a Presentation Manager object with a Present method which would do precisely what you described.  This is very doable for text, but not very feasible for a GUI interface.   ‚Ķmaybe well-structured html.

James Davis
National Institutes of Health

From: Mike Cowlishaw [mailto:[hidden email]]
Sent: Friday, February 03, 2012 3:07 AM
To: 'IBM Netrexx'
Subject: RE: [Ibm-netrexx] Fwd: [platform-dev] Re: [nbdt] Announcing the QuorumProgramming Language


Guess I missed that.  Could Rexx use a "speak" statement?  :)
Bill

It already has one; it's written 'say'.  :-)   I always intended that display (on screen), print (on paper), or speak (aloud) according to the user's preference ...  :-)


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/