<AWT Dev> RFR: 8256111: Create implementation for NSAccessibilityStaticText protocol [v2]
Pankaj Bansal
pbansal at openjdk.java.net
Thu Jan 21 10:49:44 UTC 2021
> Create implementation for NSAccessibilityStaticText protocol
>
> For testing that Label accessibility works fine, I have used something like https://docs.oracle.com/javase/tutorial/uiswing/examples/components/LabelDemoProject/src/components/LabelDemo.java. I also tried few other labels with html text. I have verified that the Voice Over output for JLables is same before and after this change.
>
> The class CommonTextAccessibility has most of the code taken from JavaTextAccessibility. Only the functions needed for StaticTextAccessibility have been taken as of now. Few more (not all) functions will be added to this class from JavaTextAccessiblity when work is done for NavigableStaticText or TextField, TextArea, Text, Password etc accessibility roles.
>
> I could not see AccessibleRole.HYPERLINK or "hyperlink" role being used anywhere. As we are reworking the implementation, I have included both roles "label" and "hyperlink" as of now.
Pankaj Bansal has updated the pull request incrementally with one additional commit since the last revision:
Add nullable flag in CommonTextAccessibility function for consistency
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/2147/files
- new: https://git.openjdk.java.net/jdk/pull/2147/files/662680b4..af3c0d98
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2147&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2147&range=00-01
Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod
Patch: https://git.openjdk.java.net/jdk/pull/2147.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2147/head:pull/2147
PR: https://git.openjdk.java.net/jdk/pull/2147
More information about the awt-dev
mailing list