- ホーム
- > 洋書
- > 英文書
- > Internet / Web Programming
Full Description
With Google Web Toolkit, Java developers can build sophisticated Rich Internet Applications (RIAs) and complete Web sites using the powerful IDEs and tools they already use. Now, with GWT 2, Google Web Toolkit has become even more useful. Essential GWT shows how to use this latest version of GWT to create production solutions that combine superior style, performance, and interactivity with exceptional quality and maintainability. Federico Kereki quickly reviews the basics and then introduces intermediate and advanced GWT skills, covering issues ranging from organizing projects to compiling and deploying final code. Throughout, he focuses on best-practice methodologies and design patterns. For example, you'll learn how to use the MVP (model-view-presenter) pattern to improve application design and support automated testing for agile development.Kereki illuminates each concept with realistic code examples that help developers jump-start their projects and get great results more quickly. Working with the latest versions of open source tools such as Eclipse, Subversion, Apache, Tomcat, and MySQL, he demonstrates exactly how GWT fits into real Web development environments. Coverage includesUsing the Google Plugin for Eclipse and the GWT Shell Script Detecting and working with browsers-and solving the problems they cause Building better user interfaces with the MVP pattern Using APIs for visualization, mapping, weather data, and more Internationalizing and localizing GWT code Securing GWT applications with cryptography, hashing, and encryption Testing with JUnit, Emma, GWTTestCase, Selenium, and Mock Objects Deploying client-only and client-plus-server GWT applications
Contents
Preface xv Acknowledgments xixAbout the Author xxiChapter 1: Developing Your Application 1Rich Internet Applications 1Advantages of GWT 4Software Methodologies to Apply 5Summary 8Chapter 2: Getting Started with GWT 2 9Why Use GWT? 9The GWT Components 12Setting Up GWT 17Summary 20Chapter 3: Understanding Projects and Development 21Creating a Project 21Project Structure 23Running Your Application: Development Mode 27Summary 30Chapter 4: Working with Browsers 31The Back Button Problem 31Detecting the User's Browser 43Summary 53Chapter 5: Programming the User Interface 55Thinking About UI Patterns 55Implementing MVP 59Some Extensions 67Declarative UI 69Summary 76Chapter 6: Communicating with Your Server 77Introduction to RPC 77RPC Patterns of Usage 84Summary 118Chapter 7: Communicating with Other Servers 119The Same Origin Policy (SOP) Restriction 119Our City Update Application 121Receiving and Processing XML 125Producing and Sending XML 131Summary 137Chapter 8: Mixing in JavaScript 139JSNI 139JSON 146JSONP 153Summary 155Chapter 9: Adding APIs 157A Weather Vane 157Dashboard Visualizations 162Working with Maps 168Summary 175Chapter 10: Working with Servers 177The Challenges to Meet 177Cryptography 179Stateless Versus Stateful Servers 183Common Operations 185Summary 193Chapter 11: Moving Around Files 195Uploading Files 195Downloading Files 204Summary 209Chapter 12: Internationalization and Localization 211Internationalization (i18n) 211Localization (l10n) 223Summary 227Chapter 13: Testing Your GWT Application 229Why Testing? 229Unit Testing with JUnit 231Integration Testing with GWTTestCase 247Acceptance Testing with Selenium 253Summary 257Chapter 14: Optimizing for Application Speed 259Design Patterns for Speed 259Speed Measurement Tools 277Summary 286Chapter 15: Deploying Your Application 287Compilation 287Modules 289Code Splitting 291Deployment 297Summary 300Index 301