Prioritized event handlers

Andy Goryachev andy.goryachev at oracle.com
Mon Oct 30 20:24:48 UTC 2023


Dear Michael:

Sorry for the late reply - you are absolutely right.  I’ve tried to solve this issue with the InputMap internal event handler list, but your proposal looks much better, as it might provide a system-wide reliable way to manage event handler invocation order.

Thank you
-andy




From: openjfx-dev <openjfx-dev-retn at openjdk.org> on behalf of Michael Strauß <michaelstrau2 at gmail.com>
Date: Monday, October 23, 2023 at 16:10
To: openjfx-dev <openjfx-dev at openjdk.org>
Subject: Prioritized event handlers
Hi Andy!

In a previous mail, I observed that a method like
`BehaviorBase.addHandlerLast` suggests to me that we're lacking core
tools in the JavaFX framework. In this case, we want to ensure that an
event handler is always invoked before (or after) other event
handlers.

One way to do that might be to support prioritized event handlers at
the core level, instead of creating new API that seems like a
workaround. I've created a proof of concept for prioritized event
handlers [0], which might be a moderate-effort but high-value addition
to JavaFX.

[0] https://github.com/openjdk/jfx/pull/1266
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20231030/6c6293e0/attachment.htm>


More information about the openjfx-dev mailing list