[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: Focus Traversal Engine
From:       Martin Sladecek <martin.sladecek () oracle ! com>
Date:       2014-11-25 8:19:11
Message-ID: 54743B7F.1080308 () oracle ! com
[Download RAW message or body]

Hi Alex,
unfortunately, there's none. The simplest way would be to use 
ParentTraversalEngine with the risk that you will have to update the 
code once (and if) the traversal engine goes public.

You can never get the 100% correct traversal with event filters as the 
first node that will be traversed will get picked by some outer 
traversal engine and only then you can start with your traversal. It's 
possible to workaround this by placing your preferred first node as the 
first focusable node in your control's tree and do the same for your 
preferred last node (for Shift+TAB traversal). The other difficulty 
event filters have is that you will disable internal traversal of 
embedded control too, so this is rather something that can be used when 
you want to handle all the traversable nodes inside your control.

Hope it helps,
-Martin

On 24.11.2014 16:50, Casall, Alexander wrote:
> Hi,
> is there an elegant way to change the focus traversal order without using Private \
> APIs (TraversalEngine) or creating an own mechanism using EventFilters? Cheers Alex
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic