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

Richard Bair richard.bair at oracle.com
Wed Dec 14 10:12:05 PST 2011


It looks good to me!



On Dec 14, 2011, at 9:02 AM, Greg Brown <greg.x.brown at oracle.com> wrote:

> 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