Skip to content

Instantly share code, notes, and snippets.

@lofidewanto
Created March 20, 2018 08:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lofidewanto/2262441fe61f887158347f68418f04e3 to your computer and use it in GitHub Desktop.
Save lofidewanto/2262441fe61f887158347f68418f04e3 to your computer and use it in GitHub Desktop.
GWT Boot - Better Implementation
package hello.client;
import com.google.gwt.core.client.*;
import com.google.gwt.user.client.ui.*;
@GwtModule(renameTo="basic")
public class YourEntryPoint implements EntryPoint {
@Override
public void onModuleLoad() {
Button button = new Button("Click me");
button.addClickHandler(clickEvent -> {
Window.alert("Hello World!");
});
RootPanel.get("helloButton").add(button);
}
@GwtModuleProperty
public String inherits() {
return "com.github.gwtboot.starter.Starter";
}
@GwtModuleProperty
public String sourcePath() {
return "client";
}
@GwtModuleProperty
public Map setProperty() {
Map<String, String> map = new HashMap<>();
map.add("gwt.logging.logLevel", "INFO");
map.add("gwt.logging.enabled", "TRUE");
return map;
}
}
@lofidewanto
Copy link
Author

Yes, I agree with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment