Java Reference
In-Depth Information
return (d.getMonth()+1)+"/"+d.getDate()+"
("+d.toString().substring(0, 2)+")";
Your front end is essentiallty complete. You'll make some minor tweaks in the
upcoming chapters, but now you can focus your attention on the server side of your
In this chapter you got to work developing your application. You defined the
functionality for your application as a standard timecard entry system that uses
Google Accounts for authentication, Google Web Toolkit for presentation, and
Bigtable for data persistence.
You started by creating your project in Eclipse and finished almost the entire
front-end development by the end of the chapter. You got a good look at GWT and
some of the features that make it an ideal platform for front-end development. A
main advantage of GWT is that it hides the complexity of writing cross-browser
JavaScript. You write your AJAX front-end in Java, which GWT then cross-compiles
into optimized JavaScript that automatically works across all major browsers. The
combination of the Eclipse plug-in and the hosted mode server are the "magic" that
allows you to catch client-side exceptions in the Eclipse IDE instead of them popping
up in the user's browser as a runtime exception.
During the course of the chapter you laid out your application and added custom
styling to give it a nice look and feel. You then added all of your UI widgets and the
handlers needed to respond to client-side events. At the end of the chapter you had
all of the code necessary for your application's front end. In the next chapter we'll
look at implementing authentication using Google Accounts.
Search WWH ::

Custom Search