A GWT project consists of at least three files (you usually have a lot more but these are essential):
- a module XML file telling GWT where to find its properties.
- an entry point class (this is the .java class with the "onModuleLoad" method).
- a HTML host page that is called from the browser to start your application.
If you generated the "HelloWorld" example as described in the previous post, your project is organized as shown below:
The module XML file
This is the main configuration file for GWT. Here you tell GWT where to find your entry point class. You define a CSS stylesheet and inherit external modules. Don't worry about the content of the file at this point.
If you double-click on the module XML file, the XML-Editor opens up by default. I use the text-editor instead. To open the XML-file with the text editor right-click on the filename in the Eclipse Project-Explorer and select "Open With -> Text Editor".
The entry point class
All of your coding starts here. This class is the main entry point of your application. It must implement the interface "EntryPoint" and has to contain the public void method "onModuleLoad()".
The HTML host page