Running Your Application
Click the Run button again to launch your application in hosted mode. It should look
like Figure 5-5.
Figure 5-5. Your newly designed application
Handling Client-Side Events
Like most web-based applications, your code executes based on user interaction. The
user triggers some kind of event, such as a button click or a key press, and your
application responds accordingly by performing some action. It shouldn't be a
surprise to discover that GWT handles events with the same event-handler interface
model that you find in other user-interface frameworks. A widget announces or
publishes an event (for example, clicking a button), and other widgets subscribe to
the event by receiving a particular event-handler interface and performing some
action (for example, displaying a pop-up message).