Java Reference
In-Depth Information
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='gaej.chaptertwo.client.GAEJ___ChapterThree'/>
</module>
If you'd like to start playing around with the GWT options, you can comment out the
following line:
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
Then uncomment out either of these lines:
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
That change instructs GWT to load a new CSS template for the Dark or Chrome
theme. Dark is a more significant change from the Standard theme. You might not
notice the change from Standard to Chrome with the minimal amount of GWT
components in use in the starter application.
We need to point out another important setting in the file. That's the following
line:
<entry-point class='gaej.chapterthree.client.GAEJ___ChapterThree'/>
That line tells App Engine where the entry point for the application is located. Find
the GAEJ___ChapterThree.java file under the src/gaej.chapterthree.client element
in the Package Explorer. There are a few key methods to browse to get an idea of
what's going on with the sample application. Look for the onModuleLoad() method.
It should look similar to the code in Listing 3-2.
Listing 3-2. Code for the onModuleLoad() method
public void onModuleLoad() {
final Button sendButton = new Button("Send");
final TextBox nameField = new TextBox();
nameField.setText("GWT User");
// We can add style names to widgets
sendButton.addStyleName("sendButton");
 
Search WWH ::




Custom Search