On Tue, 19 Jan 2021 15:19:03 GMT, Pankaj Bansal <pban...@openjdk.org> wrote:

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

This pull request has now been integrated.

Changeset: acbcde8c
Author:    Pankaj Bansal <pban...@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/acbcde8c
Stats:     272 lines in 5 files changed: 270 ins; 0 del; 2 mod

8256111: Create implementation for NSAccessibilityStaticText protocol

Reviewed-by: serb, kizune

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

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

Reply via email to