Add an
addExistingFeed
method to theFeedService
interface that takes the URL of a feed as an argument:void addExistingFeed(String feedUrl);
Add a corresponding asynchronous version of the
addExistingFeed
method to theFeedServiceAsync
interface:void addExistingFeed(String feedUrl, AsyncCallback<Void> callback);
Modify the
addFeed
method of theLinkFeedPopup
class so that it retrieves theFeedService
and calls theaddExistingFeed
method with the URL that the user has entered. If successful, the method should clear the URLTextField
and hide thePopup
:public void addFeed(final String feedUrl) { final FeedServiceAsync feedService = Registry.get(RSSReaderConstants.FEED_SERVICE); feedService.addExistingFeed(feedUrl, new AsyncCallback<Void>() { @Override public void onFailure(Throwable caught) { Info.display("RSS Reader", "Failed to add feed at: " + feedUrl); } @Override public void onSuccess(Void...
Ext GWT 2.0: Beginner's Guide
By :
Ext GWT 2.0: Beginner's Guide
By:
Overview of this book
<p>Ext GWT, also known as GXT, takes Google Web Toolkit one step further by providing a wide range of powerful user interface components. It allows a developer to create powerful web applications that are almost like desktop applications. However to leverage all the features of this powerful Java library for creating desktop-style web applications, you need to learn how and when to use the right user interface component.<br /><br />Ext GWT 2.0: Beginner's Guide is a practical book that teaches you how to use the EXT GWT library to its full potential. It provides a thorough and no-nonsense explanation of the Ext GWT library, what it offers and how to use it through practical examples. This book provides clear, step-by-step instructions for getting the most out of Ext GWT and offers practical examples and techniques that can be used for building your own applications in EXT GWT<br /><br />This book gets you up and running instantly to build powerful Rich Internet Applications (RIA) with Ext GWT. It then takes you through all the interface-building widgets and components of Ext GWT using practical examples to demonstrate when, where, and how to use each of them. Layouts, forms, panels, grids, trees, toolbars, menus, and many other components are covered in the many examples packed in this book. You will also learn to present your data in a better way with templates and use some of the most sought-after features of Ext GWT in your web applications such as drag-and-drop and charts. Throughout the book a real application is built step by step using Ext GWT and deployed to Google App Engine.</p>
<p>Imagine how great you'll feel when you're able to create great-looking desktop-style user interfaces for your web applications with Ext GWT!</p>
Table of Contents (17 chapters)
Ext GWT 2.0 Beginner's Guide
Credits
About the Author
About the Reviewers
Preface
Free Chapter
Getting Started with Ext GWT
The Building Blocks
Forms and Windows
Data-backed Components
More Components
Templates
Model View Controller
Portal and Drag-and-Drop
Charts
Putting It All Together
Pop Quiz Answers
Index
Customer Reviews