| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Steve,
Having experimented with the code you provided, it seems that there is an inconsistency with the specification of the Java Accessibility API and the functionality expected from it.
In particular, the API documentation for AccessibleRole.TEXT says that it should be used for presenting text that is usually editable. As a result, one would assume implementing AccessibleText (and perhaps AccessibleExtendedText [I'm using Java 1.5]) would be enough to provide an accessible component.
However, it seems that if you return the AccessibleRole as TEXT, somewhere along the line, it has been assumed that you are also implementing AccessibleEditableText. Amusingly enough, the actual code implemented for this interface can do NOTHING, assuming you have also implemented the AccessibleExtendedText getTextRange function.
This means that there are two possible solutions for you:
1. Use the LABEL role instead.
2. Implement AccessibleExtendedText and AccessibleEditableText.
I've attached some source demonstrating the latter solution and providing a little bit more information for your analysis.
(Note: the situation may well be different for Java 1.4, but I would be surprised. )
Anyway, at the moment, this particular issue has been bumped down the priority list, but I'm working on a bug submission for either/both of Apple / Sun. If you do so before I get the opportunity, please send me tracking numbers.
Also, if any people at Apple are listening in on the conversation and have anything more to add that would be appreciated.
Regards,
Ryan Schipper
On 23/01/2008, Steve Poole <email@hidden> wrote:
Thank you, Ryan. Here's a pared down runnable sample that exhibits the same behavior.*snip*
Steve
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden This email sent to email@hidden
| References: | |
| >Re: accessible text question (From: "Ryan Schipper" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.