ExtJS 实战 第二版 英文文字版[Ext.JS.in.Action(2nd,2014.1)].J.Garcia.文字版
文件大小:
15161k
资源说明:此书为实战第二版英文版
下面为此书介绍
xix
about this book
The purpose of this book is to inform and educate you about the flexible and power-
ful desktop framework, Ext JS. This book is designed to walk you through the basics of
using this framework all the way through to developing and deploying production
applications with Sencha Cmd. After you’ve read this book, you should be able to
develop robust desktop web applications. This revised edition covers the many new
features of Ext JS 4.0.
Who should read this book
This book is intended for developers who want to use Ext JS to create rich desktop web
applications that feel native. Although Ext JS is themed and highly customized, this
book is targeted to those who primarily perform the programming aspect of specifica-
tion implementation.
We assume that you already have a working understanding of how websites interact
with web servers. To be most effective in writing robust and responsive applications,
you need a solid background with core technologies like HTML, CSS, JavaScript, and
JSON. The only time we talk in detail about these core technologies is in chapter 13,
where we discuss prototypal inheritance with JavaScript, a prerequisite to the Ext JS
class system.
What you’ll need
In the book, we’ll walk you through many hands-on examples. In order to get the
most out of them, the following items should be set up on your computer:ABOUT THIS BOOK xx
■ A web server—We recommend Apache HTTPD or Microsoft IIS.
■ An intelligent IDE—We recommend Webstorm or Aptana.
■ A copy of Sencha Cmd installed—It’s available at www.sencha.com/products/sencha-
cmd/download.
That’s pretty much it!
Roadmap
This book is designed to give you a guided tour of Ext JS, updated for version 4.0.
Along the way, we’ll focus on many of the rich features that Ext JS provides, including
UI widgets and supportive classes such as data stores, models, and proxies. This tour
consists of 14 chapters.
Chapter 1 is an introductory chapter, focused on getting you familiar with the
framework. We’ll take a top-down view of the framework and discuss many of the com-
monly used widgets.
Chapter 2 is designed to get your feet wet with the framework. We’ll take a good
look at how the framework is delivered to you and identify its contents. We’ll also walk
through the basics of DOM manipulation and work our way up to using the Ext JS tem-
plate engines, Template and XTemplate, to render data in the DOM.
Chapter 3 is about Component and Container, both base classes for the Ext JS UI.
We’ll discuss the component lifecycle and look at how to use Container and its utility
methods to manage and query for child components.
Chapter 4 builds on chapter 3. We’ll discuss core UI components such as panels,
windows, message boxes, and tab panels. These are all fundamental widgets that
extend Container and allow you to present your UIs with more functionality than
Container provides.
Chapter 5 covers the various layout managers that Ext JS provides, which are used
to organize components on screen. After reading this chapter, you’ll be able to con-
struct complex user interfaces with the many Ext JS widgets.
Chapter 6 revolves around the form panel and the various input fields. We’ll look
at how to set up validations with input fields, and you’ll learn how to load and save
data with form panels.
Chapter 7 focuses on the Ext JS data package. You’ll learn about the core data
classes—Model, Proxy, Reader, and Store—all of which are used to supply data to vari-
ous UI components.
Chapter 8 builds on chapter 7, and you’ll learn about the grid panel. We’ll explore
the various classes that support the grid panel, and you’ll learn to use many common
implementation patterns.
Chapter 9 is the root source for learning about Ext JS tree panels. We’ll dive into
how to use the data TreeStore class to support hierarchical data to the tree panel
widget and end the chapter with tree data manipulation via implementation of an
Ext JS menu.ABOUT THIS BOOK xxi
Chapter 10 covers the Ext JS Draw and Charting package. You’ll draw simple
shapes as we explore how to draw on a canvas using the Ext JS Draw API. Afterward,
you’ll learn how to implement the many charts that Ext JS provides.
Chapter 11 focuses on direct web remoting with Ext JS. We’ll explore what it takes
to integrate server-side logic with the client to allow the server code to dictate API
calls to the client.
Chapter 12 covers drag-and-drop with Ext JS. We’ll look at how to implement the
basic drag-and-drop classes and then dive into using drag-and-drop with grids, trees,
and data views.
Chapter 13 focuses on the Ext JS class system. We begin by covering basic
JavaScript prototypal inheritance and elevate your knowledge up to developing Ext
JS classes. You’ll learn how to extend Ext JS components and develop plug-ins to
the framework.
Chapter 14 will take you through what it’s like to develop an application using
Sencha Cmd and the Ext JS MVC system. You’ll learn how to set up the basic appli-
cation scaffolding, develop an app using MVC, and then produce testing and pro-
duction builds.
Code conventions
All source code in this book is in a fixed-width font like this, which sets it off from
the surrounding text. In many listings, the code is annotated to point out the key con-
cepts. We have tried to format the code so that it fits within the available page space in
the book by adding line breaks and using indentation carefully. Sometimes, however,
very long lines include line-continuation markers.
Getting the latest examples
The examples in this book are designed to be easy to navigate. Each chapter is its own
folder, with each example named according to the listing it corresponds to.
We’ll work to keep the examples up to date as the framework is upgraded. To
get the latest version of the examples, you can fork the following GitHub repo:
https://github.com/ModusCreateOrg/extjs-in-action-examples. You can also download
a zip file with the code examples from the publisher’s website at www.manning.com/
ExtJSinActionSecondEdition.
Author Online
Purchase of Ext JS in Action, Second Edition includes free access to a private web
forum run by Manning Publications where you can make comments about the book,
ask technical questions, and receive help from the authors and from other users.
To access the forum and subscribe to it, point your browser to www.manning.com/
ExtJSinActionSecondEdition. This page provides information on how to get on the
forum once you’re registered, what kind of help is available, and the rules of con-
duct on the forum.ABOUT THIS BOOK xxii
Manning’s commitment to our readers is to provide a venue where a meaningful
dialog between individual readers and between readers and the authors can take
place. It’s not a commitment to any specific amount of participation on the part of the
authors, whose contribution to the AO remains voluntary (and unpaid). We suggest
you ask the authors challenging questions lest their interest stray!
About the authors
Jay Garcia is CTO and cofounder of Modus Create, a company focused on deliver-
ing high-end solutions with Sencha products. Jay’s involvement with the world of
Sencha started in 2006. Since then, Jay has been focused on knowledge sharing
through books, blog articles, screencasts, meetups, and conferences. His blog is at
http://moduscreate.com/.
Grgur Grisogono is a principal at Modus Create and a web technology evangelist.
Grgur has been involved with Ext JS since 2007 and has successfully organized three
Sencha-focused conferences in Europe.
Jacob Andresen resides in Germany and is an Ext JS enthusiast. He works on various
projects and contributes to the community via blog posts and the Sencha forums.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。