没有合适的资源?快使用搜索试试~ 我知道了~
java设计模式pdf(英文版java设计模式)
5星 · 超过95%的资源 需积分: 34 55 下载量 53 浏览量
2008-12-17
08:47:14
上传
评论
收藏 2.19MB PDF 举报
温馨提示
试读
218页
java设计模式pdf(英文版java设计模式),介绍java的经典设计模式,不过是英文版,有助于大家提高英语水平!
资源推荐
资源详情
资源评论
1
2
THE
DESIGN PATTERNS
JAVA COMPANION
JAMES W. COOPER
October 2, 1998
Copyright © 1998, by James W. Cooper
3
Some Background on Design Patterns 10
Defining Design Patterns 11
This Book and its Parentage 13
The Learning Process 13
Studying Design Patterns 14
Notes on Object Oriented Approaches 14
The Java Foundation Classes 15
Java Design Patterns 15
1. Creational Patterns 17
The Factory Pattern 18
How a Factory Works 18
Sample Code 18
The Two Derived Classes 19
Building the Factory 20
Factory Patterns in Math Computation 22
When to Use a Factory Pattern 24
Thought Questions 25
The Abstract Factory Pattern 26
A GardenMaker Factory 26
How the User Interface Works 28
Consequences of Abstract Factory 30
Thought Questions 30
The Singleton Pattern 31
Throwing the Exception 32
Creating an Instance of the Class 32
Static Classes as Singleton Patterns 33
Creating Singleton Using a Static Method 34
4
Finding the Singletons in a Large Program 35
Other Consequences of the Singleton Pattern 35
The Builder Pattern 37
An Investment Tracker 38
Calling the Builders 40
The List Box Builder 42
The Checkbox Builder 43
Consequences of the Builder Pattern 44
Thought Questions 44
The Prototype Pattern 45
Cloning in Java 45
Using the Prototype 47
Consequences of the Prototype Pattern 50
Summary of Creational Patterns 51
2. The Java Foundation Classes 52
Installing and Using the JFC 52
Ideas Behind Swing 53
The Swing Class Hierarchy 53
Writing a Simple JFC Program 54
Setting the Look and Feel 54
Setting the Window Close Box 55
Making a JxFrame Class 55
A Simple Two Button Program 56
More on JButtons 57
Buttons and Toolbars 59
Radio Buttons 59
The JToolBar 59
Toggle Buttons 60
5
Sample Code 61
Menus and Actions 62
Action Objects 62
Design Patterns in the Action Object 65
The JList Class 67
List Selections and Events 68
Changing a List Display Dynamically 69
The JTable Class 71
A Simple JTable Program 71
Cell Renderers 74
The JTree Class 77
The TreeModel Interface 78
Summary 79
3. Structural Patterns 80
The Adapter Pattern 81
Moving Data between Lists 81
Using the JFC JList Class 83
Two Way Adapters 87
Pluggable Adapters 87
Adapters in Java 88
The Bridge Pattern 90
Building a Bridge 91
Consequences of the Bridge Pattern 93
The Composite Pattern 95
An Implementation of a Composite 96
Building the Employee Tree 98
Restrictions on Employee Classes 100
剩余217页未读,继续阅读
资源评论
- 路漫漫而知无涯2015-07-29很不错,看起来很容易理解。感谢楼主分享。
- shuishen1122014-07-25很不错啊,可以一看
- tdy28372015-05-29文档可以,一些基础的概念值得经常回顾。
- luodan7790393432012-12-13文档很完整,只是这个出版时间太早,已经过时了
- lhcxwjh2013-07-10文档很完整
qz
- 粉丝: 3
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Figma Converter for Unity适用Unity的Figma转换器Unity游戏开发插件unitypackage
- Creepy Animatronic Anims 令人毛骨悚然的电子动画Unity游戏动画插件资源unitypackage
- Rankings & Leaderboards 排名和排行榜Unity游戏开发插件资源unitypackage
- Semantic Color Palette 语义调色板Unity游戏开发插件资源unitypackage
- Low Poly Nature:Lush and Diverse Environments低聚自然郁郁Unity低多边形模型资源
- voc数据集是什么-我们如何使用voc数据集
- Edgar Pro-Procedural Level Generator程序关卡生成器Unity开发插件unitypackage
- 宝藏软件m3u8下载器\m3u8DL-CLI
- 三次样条插值的介绍-什么是三次样条插值原理
- http的一些相关介绍-对于我们来说什么是http
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功