Accelerated GWT - Building Enterprise Google Web Toolkit Applications

von: Vipul Gupta

Apress, 2008

ISBN: 9781430206163 , 312 Seiten

Format: PDF, OL

Kopierschutz: Wasserzeichen

Windows PC,Mac OSX geeignet für alle DRM-fähigen eReader Apple iPad, Android Tablet PC's Online-Lesen für: Windows PC,Mac OSX,Linux

Preis: 32,09 EUR

Mehr zum Inhalt

Accelerated GWT - Building Enterprise Google Web Toolkit Applications


 

Contents at a Glance

5

Contents

6

About the Author

13

Acknowledgments

14

Introduction

15

Who This Book Is For

16

Downloading the Code

16

Contacting the Author

16

Getting Started with GWT

17

GWT Basics and a First Application

18

Setting Up Your GWT Environment

19

Hosted Mode vs. Web Mode

19

What Are All Those GWT Files For?

21

Creating Your First GWT Application

21

Working with Modules in GWT

26

Creating the Host HTML File

30

Steps to Create a GWT Application

31

Creating Another Application Step-by-Step

32

Summary

40

GWT Architecture and Internal Features

41

Understanding the Components That Make Up the GWT Framework

41

What Version of the Java Language Does the GWT Support?

45

The Same Origin Policy and Its Implications on GWT

47

Deferred Binding

48

Understanding Generator, Related Classes, andCode Generation Using Generators

50

GWT: Startup/Bootstrap Process

66

Summary

69

UI Programmingand Client-Server Communication

70

UI Programming: Basic Widgets

71

GUI Building with Fundamental Widgets

71

Understanding Layouts Using Panels

82

Creating Complex Widgets Using Composites

91

Summary

98

Communication: RPC

100

Understanding RPC

100

How to Use RPC in GWT

101

Your First Complete RPC Example

104

RPC in GWT: Behind the Scenes

111

Summary

114

UI Programming: Handling Events and Using Advanced Widgets

115

Handling Events Generated by Widgets

115

Styling Applications Using CSS

120

Using the TabBar Widget

124

Using the TabPanel Widget

126

Optimizing Applications Using ImageBundle

129

Building Classic HTML Forms Using FormPanel

140

Summary

144

Communication: Advanced Techniques

145

What Is Serialization?

145

Designing an RPC Application

146

Serializing Collection Classes

156

Creating Custom Field Serializers

172

Communicating with Server Using HTTP Requests

176

Summary

178

Making Applications Ready for the Real World

179

Testing GWT Applications

180

Understanding the junitCreator Utility

181

Writing GWT-Based Unit Tests

183

Testing Asynchronous Calls

194

Using the Benchmark Utility and Writing Tests for Gathering Benchmark Results

198

Summary

208

Internationalizing Your Applications: A Modern-Day Reality

209

What Is Internationalization?

209

Understanding Character Encodings

211

GWT’s Internationalization Support

212

Internationalization Techniques Available in GWT

213

Exploring the Localizable Interface

215

Tool for Internationalizing Your GWT Applications

217

Creating Your First Internationalized Application

217

Exploring the Constants Interface

226

Exploring the Messages Interface

230

Exploring the ConstantsWithLookup Interface

234

Embedding Data into Your Host HTML Pages

236

Localizing Dates, Times, Numbers, and Currencies

238

Summary

240

Some Important, Not-to- Be-Missed Techniques

241

Understanding the History Mechanism

242

Deploying a GWT-Based Application

253

Maintaining Server Sessions with a GWT Application

257

Creating an ImageBundle of Bundles

264

Understanding and Using the Tag

266

Packaging a GWT Module for Reuse

267

Summary

270

Peeking Into the Upcoming GWT 1.5 Release

272

Understanding the Major Changes in Version 1.5

272

Setting Up Your Environment for Using Version 1.5

273

Using Version 1.5 of the GWT Framework

276

Summary

289

Index

290