Created
October 20, 2015 05:50
-
-
Save Elrhino/cc1f287e2f0812e18c1f to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.inject.Inject; | |
import com.google.web.bindery.event.shared.EventBus; | |
import com.gwtplatform.mvp.client.HasUiHandlers; | |
import com.gwtplatform.mvp.client.PresenterWidget; | |
import com.gwtplatform.mvp.client.View; | |
public class ToasterWidgetPresenter extends PresenterWidget<ToasterWidgetPresenter.MyView> | |
implements ToasterWidgetUiHandlers { | |
interface MyView extends View, HasUiHandlers<ToasterWidgetUiHandlers> { | |
void setToaster(Toaster toaster); | |
} | |
@Inject | |
public ToasterWidgetPresenter( | |
EventBus eventBus, | |
MyView view) { | |
super(eventBus, view); | |
getView().setUiHandlers(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment