Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Google Web Toolkit 2 Application Development Cookbook
  • Table Of Contents Toc
Google Web Toolkit 2 Application Development Cookbook

Google Web Toolkit 2 Application Development Cookbook

By : Shamsuddin Ahammad
3.2 (5)
close
close
Google Web Toolkit 2 Application Development Cookbook

Google Web Toolkit 2 Application Development Cookbook

3.2 (5)
By: Shamsuddin Ahammad

Overview of this book

GWT 2 radically improves web experience for users by using existing Java tools to build no-compromise AJAX for any modern browser. It provides a solid platform so that other great libraries can be built on top of GWT. Creating web applications efficiently and making them impressive, however, is not as easy as it sounds. Writing web applications for multiple browsers can be quite tasking. In addition, building, reusing, and maintaining large JavaScript code bases and AJAX components can be difficult. GWT 2 Application Development Cookbook eases these burdens by allowing developers to quickly build and maintain complex yet highly efficient JavaScript front-end applications in the Java programming language . It tells you how to make web experience all the more thrilling and hassle free, using various tools along with GWT SDK.This book starts with developing an application from scratch. Right from creating the layout of the home page to home page elements including left and right sidebars, to placing tree like navigational menu, menu bars, tool bars, banners, footers are discussed with examples. You will see how to create forms using the Ext GWT library widgets and handle different types of events. Then you will move on to see how to design a database for sales processing systems and learn to create the database in MySQL with the help of easy–to-follow recipes. One of the interesting topics of this book is using JPA in GWT. Using the JPA object in GWT is a challenge. To use them perfectly, a mechanism to convert the JPA object into plain object and vice versa is required. You will see recipes to use entity classes, entity managers, and controller classes in GWT application. You will efficiently create reports with parameters, variables and subreports, and get the report output in both HTML and PDF format using real-world recipes. You will then learn to configure the GlassFish server to deploy a GWT application with database. Finally, learn how to trace speed and improve perfomance in web applications using tracing techniques.
Table of Contents (16 chapters)
close
close
Google Web Toolkit 2 Application Development Cookbook
Credits
About the Author
About the Reviewers
Preface
1
Index

Using the radio button


The radio button is used when there are some predefined options from which only a single option is selected for a field. In this recipe, we are going to create radio buttons to use as options for the gender of a person. A radio group is a group of radio buttons which allows selecting only a single radio in the group.

How to do it...

  1. Import the class com.extjs.gxt.ui.client.widget.form.Radio.

  2. Create an instance for each of the options as shown:

    Radio maleRadio = new Radio();
    Radio femaleRadio = new Radio();
    
  3. Set a label for each instance appearing beside the radio. The code for the same is as below:

    maleRadio.setBoxLabel("Male");
    femaleRadio.setBoxLabel("Female");
    
  4. Create a RadioGroup instance:

    RadioGroup genderGroup = new RadioGroup();
    
  5. Set a label for RadioGroup as shown:

    genderGroup.setFieldLabel("Gender");
    
  6. Add all the radio instances in the RadioGroup instance:

    genderGroup.add(maleRadio);
    genderGroup.add(femaleRadio);
    
  7. Add the radio group in the required form, panel, or widget...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Google Web Toolkit 2 Application Development Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon