<AWT Dev> RFR: 8267385: Create NSAccessibilityElement implementation for JavaComponentAccessibility [v9]
Artem Semenov
github.com+36081106+savoptik at openjdk.java.net
Mon Aug 2 10:03:32 UTC 2021
On Mon, 2 Aug 2021 05:38:42 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Unfortunately, the current a11y interface does not allow this action.
>> As for the custom AccessibleJListChild, I prepared a [sample project](https://github.com/savoptik/AccessibilityJListItemA11yExample) in which I implemented a custom child. The experiment showed that there are no negative consequences. The custom child works as intended.
>
> In the example, you use a JList class, and the checks in the code above works, but if some other "AccessibleJList" class will be used then it will not work, right? This is the reason why implementations of a11y classes usually use specific interfaces like "AccessibleJList".
Yes, this will not work with a custom list not inherited from JList. Unfortunately AccessibleJList is not perfect and the functionality you need is not there.
If you have a better solution, please share it. - Could you please advice on what we can do here?
-------------
PR: https://git.openjdk.java.net/jdk/pull/4412
More information about the awt-dev
mailing list