Re: Promote addEventHandler/removeEventHandler to EventTarget interface

2022-03-23 Thread Michael Strauß
I think defaulting to UnsupportedOperationException is a good choice. This shouldn't break existing usages of 3rd party implementations, since they wouldn't be calling those APIs anyway. On Fri, Mar 18, 2022 at 10:55 PM John Hendrikx wrote: > > [...] > EventTarget is already public API, and so

Re: Promote addEventHandler/removeEventHandler to EventTarget interface

2022-03-18 Thread John Hendrikx
On 17/03/2022 21:01, Michael Strauß wrote: I'm working on an application that uses the JavaFX event system extensively, and I'm finding it quite hard to use common code for event handler registrations. The problem is that the `EventTarget` interface contains no

Promote addEventHandler/removeEventHandler to EventTarget interface

2022-03-17 Thread Michael Strauß
I'm working on an application that uses the JavaFX event system extensively, and I'm finding it quite hard to use common code for event handler registrations. The problem is that the `EventTarget` interface contains no addEventHandler/removeEventHandler methods, and as a consequence of that, code