第一部分 Ext Core
第1 章 Ext Core 重要概念 ············· 2
1.1 Ext.Element······························· 2
1.1.1 获取HTMLElement 节点的Ext.Element 实例 ··················· 2
1.1.2 CSS 样式操作 ······················ 3
1.1.3 DOM 查询与遍历 ················· 4
1.1.4 DOM 操作 ·························· 6
1.1.5 事件处理 ···························· 9
1.1.6 尺寸大小 ·························· 13
1.1.7 定位功能 ·························· 14
1.1.8 动画功能 ·························· 16
1.1.9 杂项 ································ 19
1.2 Ajax 介绍 ······························· 19
1.3 DomQuery 介绍 ······················· 20
1.4 模板介绍 ······························· 23
1.5 实用功能 ······························· 24
1.6 定时执行代码 ························· 25
1.7 本章小结 ······························· 26
第2 章 Ext Core 实例系统设计 ································ 27
2.1 需求分析 ······························· 27
2.2 系统设计 ······························· 28
用户功能 ··································· 28
2.3 功能结构图 ···························· 29
2.4 开发与运行环境 ······················ 31
2.5 数据库设计 ···························· 31
2.6 本章小结 ······························· 34
第3 章 Ext Core 实例讲解—.NET 语言实现 ················ 35
3.1 创建应用并设置开发环境 ··········· 35
3.2 自定义Membership 提供程序 ······ 37
3.3 创建母版页 ····························· 38
3.4 首页设计 ································ 42
3.5 产品列表页 ····························· 47
3.6 产品详细信息页 ······················· 51
3.7 登录对话框 ····························· 56
3.8 用户注册对话框 ······················· 61
3.9 购物车对话框 ·························· 65
3.10 结算 ···································· 70
3.11 为产品详细页添加评论 ············ 77
3.12 本章小结 ······························ 84
第4 章 Ext Core 实例讲解—Java 语言实现 ················ 85
4.1 技术选型 ································ 85
4.2 搭建开发环境 ·························· 85
4.3 设计页面布局 ·························· 87
4.4 网上商店首页 ·························· 90
4.5 产品列表页面 ·························· 98
4.6 产品详细信息页面 ··················· 105
4.7 登录对话框 ···························· 113
4.8 用户注册对话框 ······················ 118
4.9 购物车对话框 ························· 123
2 第一部分 Ext Core ●
4.10 结算页面 ····························· 126
4.11 为产品添加评论功能 ·············· 133
4.12 小结 ··································· 139
第二部分 Store 和Direct
第5 章 在.NET 中使用
Ext.Direct ······················ 150
5.1 路由器包(Router-0.6.zip)
的内容 ································· 150
5.2 DIY 一个Ext.Direct 实例 ··········· 151
5.3 NewtonSoft.JSON ···················· 154
5.3.1 JSON 的序列化和反序
列化 ······························· 154
5.3.2 LINQ to JSON ··················· 157
5.3.3 JSON 文本的输出 ·············· 161
5.4 本章小结 ······························ 162
第6 章 在Java 中使用
Ext.Direct ······················· 163
6.1 在Java 平台上配置Ext.Direct ····· 163
6.1.1 下载directjngine ················ 163
6.1.2 配置主控servlet ················ 164
6.1.3 配置客户端 ······················ 169
6.1.4 编写JavaScript 调用
远程方法 ························ 171
6.2 为Ext.Direct 自定义远程方法 ······ 172
6.3 Ext.Direct 中的高级应用 ··········· 177
6.3.1 批量请求和批量响应 ·········· 177
6.3.2 在tree 中使用Ext.Direct ······ 180
6.3.3 为grid 设置DirectStore ······· 182
6.3.4 在form 中使用Ext.Direct
加载数据 ·························· 184
6.3.5 在form 中使用Ext.Direct
提交数据 ························· 186
6.3.6 使用polling 方式进行轮询 ···· 188
6.4 本章小结 ······························· 190
第7 章 Store ······························· 191
7.1 Store 的结构 ··························· 191
7.2 Ext.data.Field ·························· 196
7.3 Ext.data.Record ························ 197
7.4 ArrayReader、JsonReader 和
XmlReader ···························· 198
7.4.1 JsonReader ························ 199
7.4.2 ArrayReader ······················ 199
7.4.3 XmlReader························ 200
7.5 Store 的加载数据 ····················· 200
7.6 Store 的数据操作 ····················· 202
7.6.1 添加数据 ························· 202
7.6.2 删除数据 ························· 202
7.6.3 搜索、定位和统计 ············· 202
7.6.4 更新数据 ························· 205
7.6.5 排序 ······························· 206
7.7 DataProxy ······························ 207
7.8 DirectStore ····························· 208
7.9 DataWriter ····························· 211
7.10 Ext.data.Api ·························· 211
7.11 本章小结 ····························· 212
第三部分
第8 章 Ext 用户界面控件 ··········· 214
《Ext JS 高级程序设计》3
8.1 布局 ···································· 214
8.1.1 在FormPanel 中使用
HBoxLayout 进行布局 ········· 214
8.1.2 在FormPanel 中使用
HboxLayout 和VboxLayout
进行布局 ························· 217
8.1.3 Panel 的body 的样式
范围 ······························· 222
8.2 Form 表单组件 ······················· 224
8.2.1 DisplayField 控件 ··············· 224
8.2.2 在FormPanel 中使用
TabPanel ·························· 227
8.2.3 DirectLoad 与
DirectSubmit ····················· 230
8.2.4 使用DirectSubmit 上传
文件 ······························· 233
8.3 Grid 组件 ······························ 236
8.3.1 一个结合DataWrite 和RowEditor 的Grid 示例 ······· 236
8.3.2 在CRUD 操作中restful 的
设置以及使用Ext.Direct 的问题245
8.4 ListView 控件 ························· 246
8.5 本章小结 ······························ 249
第四部分 Ext 扩展和
Ext 插件
第9 章 Ext 扩展 ························ 251
9.1 利用Ext.extend 实现继承 ·········· 251
9.2 与Ext 扩展相关的预备知识 ······· 253
9.2.1 定义命名空间 ··················· 253
9.2.2 重写构造函数 ··················· 254
9.2.3 继承组件的一些准备 ·········· 254
9.2.4 常用的辅助函数 ················ 255
9.2.5 使用xtype ························ 255
9.3 实现一个功能完整的增、删、
查、改表格控件 ····················· 256
9.3.1 扩展GridPanel ·················· 256
9.3.2 配置列模型 ······················ 256
9.3.3 配置显示数据 ··················· 257
9.3.4 点缀EasyGrid ··················· 258
9.3.5 实现添加一条记录的功能····· 259
9.3.6 实现修改一条记录的功能····· 261
9.3.7 实现删除一条记录的功能····· 263
9.4 从头实现 Ext 扩展 ·················· 267
9.5 本章小结 ······························· 271
第10 章 Ext 插件 ······················· 272
10.1 插件的用法 ·························· 272
10.2 标签页右键菜单
TabCloseMenu ······················· 273
10.3 面板最大化MaximizeTool ········ 275
10.4 分页设置PageSizePlugin ·········· 279
10.5 行数据扩展RowExpander ········ 281
10.6 本章小结 ····························· 287
第五部分 调试
第11 章 调试 ····························· 289
11.1 测试Ext.Element 的功能 ·········· 289
11.1.1 获取Ext.Element 实例 ········ 289
11.1.2 测试CSS 样式操作 ··········· 291
11.1.3 测试DOM 操作 ··············· 293
4 第一部分 Ext Core ●
11.1.4 测试DOM 查询与遍历 ······ 297
11.1.5 测试事件处理 ·················· 299
11.2 结合DataWrite 和RowEditor
的Grid 的调试过程 ················ 300
11.3 本章小结 ····························· 303
第六部分 实例
第12 章 单页面应用实例系统分析-305
12.1 系统分析 ····························· 305
12.2 系统设计 ····························· 305
12.2.1 单页面应用设计的难点 ······ 305
12.2.2 开发与运行环境 ··············· 306
12.2.3 数据库设计 ···················· 306
12.3 各个模块的详细功能说明 ········ 308
12.3.1 登录页面 ······················· 308
12.3.2 主页面 ·························· 308
12.3.3 角色管理 ······················· 308
12.3.4 用户管理 ······················· 309
12.3.5 进仓管理 ······················· 309
12.3.6 出仓管理 ······················· 310
12.3.7 产品管理 ······················· 310
12.3.8 库存统计 ······················· 311
12.3.9 修改密码 ······················· 311
12.4 本章小结 ····························· 311
第13 章 单页面应用实例—
.NET 语言实现 ············· 312
13.1 创建应用并设置开发环境 ········ 312
13.2 自定义Membership 提供
程序 ··································· 314
13.3 登录页 ································ 316
13.4 主页面 ································ 321
13.5 Ext.Direct 的API 句柄 ············· 326
13.6 修改密码对话框 ···················· 327
13.7 角色管理模块 ······················· 330
13.8 用户管理 ····························· 342
13.9 产品管理 ····························· 353
13.10 进仓管理 ···························· 364
13.11 出仓管理 ···························· 385
13.12 库存统计 ···························· 400
13.13 退出页 ······························· 404
13.14 权限设置 ···························· 405
13.15 本章小结 ···························· 406
第14 章 单页面应用实例——
Java 语言实现 ·············· 407
14.1 技术选型 ····························· 407
14.2 搭建开发环境 ······················· 408
14.3 配置Ext.Direct ······················ 410
14.4 用户登录页面 ······················· 414
14.5 系统主页面与动态菜单 ··········· 418
14.6 用户管理模块 ······················· 424
14.7 角色管理模块 ······················· 436
14.8 产品管理模块 ······················· 444
14.9 进仓管理模块 ······················· 447
14.10 出仓管理模块 ······················ 457
14.11 库存统计模块 ······················ 471
14.12 用户修改密码窗口 ················ 476
14.13 用户注销 ···························· 479
14.14 本章小结 ···························· 480
样张下载地址: http://dl.javaeye.com/topics/download/21773e4b-f69a-37e0-97cb-683e71336a54