neo09 / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Helper: PresenterWidgetImpl.addHandler(Type<...>, ...Handler) #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I want to register an handler to the event bus in a presenter, I have
to write:

registerHandler(eventBus.addHandler(type, handler));

An enhancement would be to have a addHandler to the PresenterWidgetImpl class:

protected <H extends EventHandler> void addHandler(Type<H> type, H handler)
{
    registerHandler(eventBus.addHandler(type, handler));
}

Original issue reported on code.google.com by olivier....@free.fr on 28 May 2010 at 9:56

GoogleCodeExporter commented 9 years ago
I agree, it would be nice and easy to implement !

Original comment by goudreau...@gmail.com on 28 May 2010 at 12:55

GoogleCodeExporter commented 9 years ago
Let's do this. Call it addRegisteredHandler. We'll even include it in today's 
release!

Original comment by philippe.beaudoin on 28 May 2010 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by goudreau...@gmail.com on 28 May 2010 at 4:47

GoogleCodeExporter commented 9 years ago
wow, you're so fast ;) thx

Original comment by olivier....@free.fr on 28 May 2010 at 8:55