Skip to content

Instantly share code, notes, and snippets.

@Elrhino
Created August 28, 2015 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elrhino/d7d26bbb32194152c663 to your computer and use it in GitHub Desktop.
Save Elrhino/d7d26bbb32194152c663 to your computer and use it in GitHub Desktop.
Code snippets from ToasterLauncher - GWTP Beginner's Tutorial Part 1
public class LauncherView extends ViewImpl implements LauncherPresenter.MyView {
interface Binder extends UiBinder<Widget, LauncherView> {
}
@UiField
TextBox launchCoordinates;
@UiField
TextBox launchPower;
@UiField
Button launchButton;
@Inject
LauncherView(Binder uiBinder) {
initWidget(uiBinder.createAndBindUi(this));
}
public void onLaunch() {
// TODO: Send launch parameters to the LauncherPresenter.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment