我有一个控件,我需要找到它的 Accessible Name Property 。我这样做是这样的:
Component myComponent = (Component)myControl;
string accessName = myComponent.getAccessibleContext().getAccessibleName();
这在java中就像一个魅力,但是当涉及到JavaFx
时,我找不到这个属性。
我在网上查看过,但对此特定请求的在线支持并不多。以至于我什至在 JavaFx
中找不到等效的东西。
有人知道它的名字或如何访问它吗?这对我的搜索有很大帮助。
最佳答案
我认为 JavaFX 目前尚未实现可访问性,如果实现了,我不知道它是否会使用 javax.accessibility
。
来自JavaFX Roadmap :
Oracle is committed to providing accessibility support in its product offerings, and JavaFX is planned to be fully accessibility compliant as part of the JDK 8 release.
路线图还指出:
The following information is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described remains at the sole discretion of Oracle.
您不太可能在 StackOverflow 上收到 Oracle 的官方回复。如果您在 official Oracle forum 上提问,您可能会收到更多信息。或上JavaFX development mailing list .
关于java - 获取 AccessibleName 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15027232/