<AWT Dev> RFR: 8267385: Create NSAccessibilityElement implementation for JavaComponentAccessibility [v9]

Sergey Bylokhov serb at openjdk.java.net
Mon Aug 2 21:59:37 UTC 2021


On Mon, 2 Aug 2021 10:00:10 GMT, Artem Semenov <github.com+36081106+savoptik at openjdk.org> wrote:

>> 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?

This is what I meant in the first message, "a11y interface miss setSelectedIndex method". I suggest filing a separate issue to accumulate such use cases and then fix them by adding additional methods to a11y interfaces. Probably something similar will be found in the Table/etc.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4412


More information about the awt-dev mailing list