Developing with Ext GWT.pdf
(
1985 KB
)
Pobierz
Microsoft Word - 19415_complete_v2.doc
Available as a
PDF Electronic Book
or
Print On Demand
Ext GWT
Enterprise RIA Development
140
PAGeS
Grant K. Slender
Developing with
About firstPress
Apress's
firstPress
series is your source for understanding cutting-edge technology.
Short, highly focused, and written by experts, Apress's firstPress books save you time and
effort. They contain the information you could get based on intensive research yourself or
if you were to attend a conference every other week––if only you had the time. They
cover the concepts and techniques that will keep
you
ahead of the technology curve.
Apress's firstPress books are real books, in your choice of electronic or print-on-demand
format, with no rough edges even when the technology itself is still rough. You can't
afford to be without them.
Developing with Ext GWT: Enterprise RIA Development
Dear Reader,
Late nights chatting with the developer of Ext GWT about the details of how this new
and exciting GWT framework works, explaining concepts and approaches, finally
resulted in the realization that a book on Ext GWT development was desperately needed.
As a complete rich Internet application (RIA) framework, Ext GWT offered much more
than just a few simple buttons and windows—so this book is for the growing community
of Java developers who are looking for an easier approach to entering the Ajax and RIA
landscape.
Based on the exciting new UI library from Ajax leaders Ext JS and the latest GWT
release, this book takes the reader through setup, the available widgets, and advanced
custom widgets and templates, and concludes with a functional sample client-server
application in around 140 pages. Not your typical beginner’s guide to programming, this
book provides a rapid approach to becoming effective with leading commercial RIA tools
and libraries.
A practical approach to enterprise RIA development using industry-proven tools.
Full coverage of the new Ext GWT 2.0 widget library using the GWT 1.6
framework.
Designed for professional developers needing a quick, no-nonsense overview of
the initial requirements to get started.
Full coverage of layouts and many advanced features (such as Drag-n-Drop,
Grid, Store and Data API, and Charts).
Concludes with a complete example application that showcases an
enterprisestyle rich Internet application.
Contents
Introduction........................................................................................................
iv
This Book’s Audience...........................................................................................................
iv
Getting the Example Code....................................................................................................
iv
About the Author ..................................................................................................................
iv
Chapter 1: Overview of Ext GWT and GWT .......................................................
1
About Ext GWT......................................................................................................................
1
About GWT ............................................................................................................................
3
GWT Crash Course ...........................................................................................................................
4
Summary ................................................................................................................................
7
Chapter 2: Organizing the Environment .............................................................
9
The Basic Ingredients............................................................................................................
9
Setting Up Eclipse................................................................................................................
10
Defining User Libraries...................................................................................................................
10
Creating an Application ..................................................................................................................
11
Importing to Eclipse ........................................................................................................................
12
Adjusting for GXT ..........................................................................................................................
13
My First GXT App..........................................................................................................................
16
Summary ..............................................................................................................................
17
Chapter 3: Widgets, Widgets, Everywhere .......................................................
19
The Complete Ext-ended Family.........................................................................................
20
.widget ..................................................................................................................................
21
Component ......................................................................................................................................
21
How Things Are Rendered..............................................................................................................
22
Events..............................................................................................................................................
23
Sinking Events ................................................................................................................................
23
Container .........................................................................................................................................
24
LayoutContainer..............................................................................................................................
25
ContentPanel ...................................................................................................................................
26
Developing with Ext GWT
i
Viewport..........................................................................................................................................
29
Window and Dialog ........................................................................................................................
29
MessageBox ....................................................................................................................................
30
TabPanel and TabItem ....................................................................................................................
32
Html and HtmlContainer.................................................................................................................
33
ProgressBar .....................................................................................................................................
34
Slider ...............................................................................................................................................
35
DataList...........................................................................................................................................
36
ListView..........................................................................................................................................
37
.widget.button .......................................................................................................................
38
Button, ToggleButton, and SplitButton...........................................................................................
39
Status...............................................................................................................................................
40
IconButton and ToolButton.............................................................................................................
42
.widget.toolbar......................................................................................................................
42
.widget.menu ........................................................................................................................
43
.widget.tips............................................................................................................................
45
State Management ...............................................................................................................
46
Themes—Let’s Make It Pretty ............................................................................................
47
Summary ..............................................................................................................................
49
Chapter 4: Advanced Widgets and Stuff...........................................................
51
Layouts .................................................................................................................................
51
GWT Panels ....................................................................................................................................
51
Cascading Layouts ..........................................................................................................................
54
Layout Managers.............................................................................................................................
54
Layout Tips-n-Tricks ......................................................................................................................
57
CenterLayout...................................................................................................................................
58
AnchorLayout and AbsoluteLayout ................................................................................................
58
FitLayout and FlowLayout..............................................................................................................
59
AccordianLayout and CardLayout ..................................................................................................
60
RowLayout and FillLayout .............................................................................................................
61
HBoxLayout and VBoxLayout .......................................................................................................
63
ColumnLayout, TableLayout, and TableRowLayout......................................................................
64
BorderLayout ..................................................................................................................................
65
FormLayout.....................................................................................................................................
67
Forms ...................................................................................................................................
67
A Form Example .............................................................................................................................
69
Form’s Rich Text Editor .................................................................................................................
73
ii
Developing with Ext GWT
Portal ....................................................................................................................................
74
Drag-n-Drop ........................................................................................................................
75
XTemplates...........................................................................................................................
77
Summary ..............................................................................................................................
78
Chapter 5: Working With Data ..........................................................................
79
Data, Stores, and Loaders ...................................................................................................
79
Models.............................................................................................................................................
79
Stores...............................................................................................................................................
80
Loaders............................................................................................................................................
81
Using BeanModel Objects ..............................................................................................................
82
Stores and Loaders ..........................................................................................................................
84
GWT RPC .......................................................................................................................................
85
Grid.......................................................................................................................................
89
A Basic Grid....................................................................................................................................
90
EditorGrid .......................................................................................................................................
91
Even More Grid...............................................................................................................................
97
Binders: Table, Tree, and TreeTable ................................................................................
101
Summary ............................................................................................................................
104
Chapter 6: A Working Example ......................................................................
105
myCustomerContacts Application—What’s New? ...........................................................
106
When Loading...............................................................................................................................
106
Customer Data...............................................................................................................................
107
Keeping Data Independent ............................................................................................................
109
Layout and Construction ...............................................................................................................
109
When the Module Loads ...............................................................................................................
111
Preparing for Services ...................................................................................................................
112
Building the Main Layout .............................................................................................................
115
Building the Grid Panel.................................................................................................................
116
Building the Form Panel ...............................................................................................................
122
Building the Chart Panel ...............................................................................................................
125
Additional Bits ..............................................................................................................................
128
The Server Code............................................................................................................................
132
Summary ............................................................................................................................
133
Developing with Ext GWT
iii
Plik z chomika:
elrafb
Inne pliki z tego folderu:
User Interfaces with CSharp Windows Forms and Custom Controls.pdf
(22178 KB)
Using and Understanding Java Data Objects.chm
(5797 KB)
Using Microsoft Windows Small Business Server 2003.pdf
(7476 KB)
Virtualization From the Desktop to the Enterprise.chm
(12465 KB)
Visual Basic 2005 Recipes.pdf
(10845 KB)
Inne foldery tego chomika:
Linux Foundation - (LFCS)
Linux Video
O'Reilly
Prasa
Zgłoś jeśli
naruszono regulamin