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";
loadsGWTSimple
var pageType = "Console";
loadsGWTConsole
var pageType = "Expose";
loadsGWTExpose
.var pageType = "Interop";
loadsGWTInterop
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
consoleLog
(String msg) Native method to write to the JavaScript consoleReads thewindow.PageType
variable from JavaScriptvoid
This is the entry point method, will construct the appropriate class, depending on thewindow.PageType
variable, 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.PageType
variable, and calls itonModuleLoad()
method.- Specified by:
onModuleLoad
in interfaceEntryPoint
-
getPageType
Reads thewindow.PageType
variable from JavaScript -
consoleLog
Native method to write to the JavaScript console- Parameters:
msg
-
-