[REVIEW] Allow caller to specify no-arg controller method as an event handler

Greg Brown greg.x.brown at oracle.com
Wed Dec 14 09:02:48 PST 2011


I have updated FXMLLoader to prioritize a handler method that takes an event argument over a handler with no arguments.

Does anyone have any additional feedback on this item?

Greg

On Dec 13, 2011, at 2:22 PM, Greg Brown wrote:

> This is a review request for RT-18229:
> 
> http://javafx-jira.kenai.com/browse/RT-18229
> 
> In JavaFX 2.0, controller-based event handlers must adhere to the method signature defined by an event handler; in other words, they must accept a single argument of a type that extends Event and return void. This change lifts the argument restriction, making it possible to write a controller event handler that takes no arguments.
> 



More information about the openjfx-dev mailing list