ictvmt / mvp4g

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

Multiple Presenter, Multiple module #129

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have 3 hierarchical modules :

                       Module A
                  Module B    Module C

(Module A is the parent module of module B and module C)

I try to instanciate a Presenter of module C from a presenter in module B
but eventBus are differents so i can't with this method
   Presenter C = eventBus.addHandler(Presenter.class)

How I can do this? I need to keep a reference on the Presenter so i can't use 
event generation.

Thanks.

Original issue reported on code.google.com by sebastie...@gmail.com on 12 Mar 2014 at 10:52

GoogleCodeExporter commented 8 years ago
Please do not use issues to ask questions. You will get an answer sooner if you 
use the mvp4g group for such kind of questions.

To solve your problem, send an event to the parent module (Modul A). The parent 
eventbus should send the event to the child eventbus (Module C). Create a 
handler in Module C, which creates and manage the required presenter.

Original comment by frank.hossfeld on 16 Apr 2014 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by frank.hossfeld on 16 Apr 2014 at 6:58