google-code-export / mvp4g

Automatically exported from code.google.com/p/mvp4g
1 stars 0 forks source link

"Precise" event #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In some cases it is very useful to have an event that not going to all handlers 
specified by this event, but only to one or two from the all available handlers 
of the event. E.g. you need to send notification only to the visible view and 
you know exactly what view is now attached to DOM.

The code will look like this:
eventBus.to(MyPresenter1.class, MyPresenter2.class).oneEvent(parameters)
or
eventBus.to("presenter1Name", "presenter2Name").oneEvent(parameters)

And this will set events to the next event fired.

Original issue reported on code.google.com by Shvets.S...@gmail.com on 20 Feb 2012 at 8:42