RFR: 8090456: Focus Management [v9]
Andy Goryachev
angorya at openjdk.org
Wed Oct 9 22:53:16 UTC 2024
On Wed, 9 Oct 2024 22:46:32 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> Public APIs for focus traversal and the focus traversal policy:
>>
>> https://github.com/andy-goryachev-oracle/Test/blob/main/doc/FocusTraversal/FocusTraversal.md
>>
>> This work is loosely based on the patch
>> https://cr.openjdk.org/~jgiles/8061673/
>
> Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 15 commits:
>
> - Merge remote-tracking branch 'origin/master' into 8090456.focus.traversal
> - Merge remote-tracking branch 'origin/master' into 8090456.focus.traversal
> - removed traversal event
> - javadoc
> - remove bounds
> - whitespace
> - Merge remote-tracking branch 'origin/master' into 8090456.focus.traversal
> - Merge remote-tracking branch 'origin/master' into 8090456.focus.traversal
> - review comments
> - Merge remote-tracking branch 'origin/master' into 8090456.focus.traversal
> - ... and 5 more: https://git.openjdk.org/jfx/compare/ec60af47...5b31a64f
This PR does not provide any new logic.
It opens up two APIs which are independent of the implementation: the focus traversal methods and the traversal policy, for customization.
We can take upon creating additional traversal policies as a separate effort, including any optimization of the policies used by `ToolBarSkin` or any other skin, and maybe making them public if they are general enough.
We can also take upon any changes in the current traversal logic, including maybe a way to customize the global traversal algorithm, also as a separate effort.
This PR provides the absolute minimal APIs to support custom components and custom traversal policies.
Are there any objections to the new public APIs (and not the implementation)? Is there something the application developer or custom component developer _cannot_ do with the proposed API?
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1555#issuecomment-2403557685
More information about the openjfx-dev
mailing list