UIBinder and MVP in GWT

When using the MVP template, as described here in GWT, how do you create a presenter associated with a view when the view is part of another uibinder-view.

+4
source share
1 answer

You create the instance yourself through:

  • @UiFactory method:

     @UiFactory public Widget getMyView(){ // here you instantiate your view & activity ... // your view contais a widget or is a widget return widget } 
    Field
  • @UiField(provided=true) :

     @UiField(provided=true) public Widget myView; // then instantiate it in constructor 
+2
source

All Articles