A
Module is a collection of client side java code. A Module is defined by a .gwt.xml, and it can inherit other modules. The GWT compiler takes a module as its input, and compiles it into javascript code.
A Module has exactly one
entry point class. (It is possible to define a module without an Entry Point.. but lets skip it for the moment). The onModuleLoad() method of your entry point class is like the main() method in a standard java program.
Once compiled, the module + entrypoint classs becomes a single .nocache.js file. The .nocache.js file contains the bootstrap code. It loads other js / html files as needed. Note that at this point the java code is useless - everything has been converted into equivalent javascript.
The
HTML file is the host for the .nocache.js file. The browser first downloads the html, and then downloads the .nocache.js. Once the .nocache.js loads, the javascript eqivalent of your onModuleLoad gets called. From there on, whatever code you write gets executed.
--Sri