ictvmt / mvp4g

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

For LazyPresenter, createPresenter should be called before view.createView #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This way, the presenter can build other multiple presenters and pass their 
views to its own view before its view needs to be build.

Workaround, use this class instead:

public class LazyPresenter<V extends LazyView, E extends EventBus> extends 
BasePresenter<V, E> {

    @Override
    final public void bind() {
        createPresenter();
        view.createView();
        bindView();
    }            

    public void bindView() {
        //do nothing by default 
    }

    public void createPresenter() {
        //do nothing by default    
    }

}

Original issue reported on code.google.com by plcoir...@gmail.com on 11 Oct 2010 at 6:41

GoogleCodeExporter commented 8 years ago

Original comment by plcoir...@gmail.com on 12 Oct 2010 at 1:59

GoogleCodeExporter commented 8 years ago
Available with the last 1.3.0 snapshot

Original comment by plcoir...@gmail.com on 18 Oct 2010 at 9:35