Created
March 11, 2012 21:00
-
-
Save imjasonh/2018190 to your computer and use it in GitHub Desktop.
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
public class MyEntryPoint implements EntryPoint { | |
public void onModuleLoad() { | |
jsniAlert(); | |
jsniAlertParam("Hello"); | |
jsniAlertParam("World"); | |
} | |
private static final native void jsniAlert() /*-{ | |
$wnd.alert("Called JSNI alert"); | |
}-*/; | |
private static final native void jsniAlertParam(String msg) /*-{ | |
$wnd.alert("Called JSNI alert with param: " + msg); | |
}-*/; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment