Closed GoogleCodeExporter closed 8 years ago
I think this feature is covered by issue 42 (you can also take a look at this
discusion:
http://groups.google.com/group/mvp4g/browse_thread/thread/d8cb08d7073af787/821d4
55f1e8223b7). The approach is a little bit different but the result is the same.
The idea is that you can broadcast an event to any presenters or child modules
that implement a certain interface.
for example, you will have this event:
void oneEvent(broadcastTo=OneInterface.class);
and for each child module you will need:
public interface OneChildModule extends Mvp4gModule, OneInterface {...}
This way, you can easily broadcast an event.
You can take a look at this
example:http://code.google.com/p/mvp4g/source/browse/trunk/examples/Mvp4gModules
/src/com/mvp4g/example/client/main/MainEventBus.java
What do you think?
Original comment by plcoir...@gmail.com
on 24 Nov 2010 at 12:32
[deleted comment]
I think having to broadcast events this way would be very great! And, seems
this ticket is a duplicate, though. Thank you! #42 will be useful!
Original comment by shaman.sir
on 24 Nov 2010 at 3:26
Thanks for the confirmation. I will set this bug as a duplicate of 42
Original comment by plcoir...@gmail.com
on 6 Dec 2010 at 10:51
Original issue reported on code.google.com by
shaman.sir
on 23 Nov 2010 at 3:52