-
CSR
-
Resolution: Approved
-
P3
-
None
-
source, behavioral
-
minimal
-
-
Java API
-
JDK
Summary
Introduce a new accessible attribute named VALUE_STRING to fetch the value of a control (for now Spinner) as a string.
Problem
On windows platform, accessibility is not implemented for spinner control and currently it returns the value of Spinner as the name property of Spinner. Ideally the accessible text of the Spinner control should be returned as the name property. This leads to incorrect reading of Spinner by accessibility client application.
Solution
- For this we need to implement IValueProvider pattern for Spinner control.
- IValueProvider requests the value of the control using it's API get_ValueString()
- Introduce a new AccessibleAttribute VALUE_STRING to be fetched when get_ValueString() is called.
- And the existing TEXT attribute shall be used to return the accessible text as name property.
Specification
javafx.scene.AccessibleAttribute: Add a new AccessibleAttribute: VALUE_STRING
/**
* Returns the value as string for the node.
* <ul>
* <li>Used by: Spinner </li>
* <li>Needs notify: yes </li>
* <li>Return Type: {@link String} </li>
* <li>Parameters: </li>
* </ul>
*
* @since 22
*/
VALUE_STRING(String.class),
- csr of
-
JDK-8284544 [Win] Name-Property of Spinner cannot be changed
- Resolved