-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8284544: [Win] Name-Property of Spinner cannot be changed #1291
Conversation
👋 Welcome back arapte! A progress list of the required criteria for merging this PR into |
Webrevs
|
/reviewers 2 |
@kevinrushforth |
@kevinrushforth has indicated that a compatibility and specification (CSR) request is needed for this pull request. @arapte please create a CSR request for issue JDK-8284544 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
This should be tested in connection with PR #1226 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left quick comment and a question inline.
modules/javafx.graphics/src/main/java/javafx/scene/AccessibleAttribute.java
Show resolved
Hide resolved
Updated the PR with changes required for macOS, such that the Spinner is read same as before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good and everything works as I would expect. I left one question, but it is fine as you have it.
modules/javafx.graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks good!
@arapte This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 32 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 43448dd.
Your commit was automatically rebased without conflicts. |
Currently we use the value of spinner as it's
UIA_NamePropertyId
when a11y client application requests for it.Ideally we should use the text set by
Node.setAccessibleText()
as theUIA_NamePropertyId
.For other controls such as Slider, ListView we use the text set by setAccessibleText() API.
Fix:
Use the text set by
Node.setAccessibleText()
as theUIA_NamePropertyId
.This means, when a11y client requests
UIA_NamePropertyId
, which is mapped to AccessibleAttribute.TEXT attribute, we shall return the accessible text.So we need another way to read out the VALUE of the Spinner.
IValueProvider
pattern for Spinner controlget_ValueString()
VALUE_STRING
EDITABLE
case inSpinner.queryAccessibleAttribute()
Verification:
setAccessibleText()
for Spinner as the Name property and the Spinner's value as value propertyProgress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1291/head:pull/1291
$ git checkout pull/1291
Update a local copy of the PR:
$ git checkout pull/1291
$ git pull https://git.openjdk.org/jfx.git pull/1291/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1291
View PR using the GUI difftool:
$ git pr show -t 1291
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1291.diff
Webrev
Link to Webrev Comment