Package com.singularsys.client
Class GWTJepEntry
java.lang.Object
com.singularsys.client.GWTJepEntry
- All Implemented Interfaces:
EntryPoint
Entry point classes allowing the all examples to be accessed from the same library.
The JavaScript in the web page must define the pageType variable:
var pageType = "Simple";loadsGWTSimplevar pageType = "Console";loadsGWTConsolevar pageType = "Expose";loadsGWTExpose.var pageType = "Interop";loadsGWTInterop.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconsoleLog(String msg) Native method to write to the JavaScript consoleReads thewindow.PageTypevariable from JavaScriptvoidThis is the entry point method, will construct the appropriate class, depending on thewindow.PageTypevariable, and calls itonModuleLoad()method.
-
Constructor Details
-
GWTJepEntry
public GWTJepEntry()
-
-
Method Details
-
onModuleLoad
public void onModuleLoad()This is the entry point method, will construct the appropriate class, depending on thewindow.PageTypevariable, and calls itonModuleLoad()method.- Specified by:
onModuleLoadin interfaceEntryPoint
-
getPageType
Reads thewindow.PageTypevariable from JavaScript -
consoleLog
Native method to write to the JavaScript console- Parameters:
msg-
-