Pokemon

Páginas: 340 (84976 palabras) Publicado: 19 de febrero de 2013
Design Patterns
Elements of Reusable Object-Oriented Software
Produced by KevinZhang

Design Patterns: Elements of Reusable Object-Oriented Software

Contents
Preface to CD ........................................................ 5

Preface to Book ...................................................... 7

Foreword ............................................................. 9Guide to Readers .................................................... 10

1 Introduction ...................................................... 11 1.1 What Is a Design Pattern? ...................................... 12 1.2 Design Patterns in Smalltalk MVC ............................... 14 1.3 Describing Design Patterns ..................................... 16 1.4 The Catalog of DesignPatterns ................................. 18 1.5 Organizing the Catalog ......................................... 21 1.6 How Design Patterns Solve Design Problems ...................... 23 1.7 How to Select a Design Pattern ................................. 42 1.8 How to Use a Design Pattern .................................... 44

2 A Case Study: Designing a Document Editor......................... 46 2.1 Design Problems ................................................ 46 2.2 Document Structure ............................................. 47 2.3 Formatting ..................................................... 53 2.4 Embellishing the User Interface ................................ 56 2.5 Supporting Multiple Look-and-Feel Standards .................... 60 2.6 Supporting Multiple WindowSystems ............................. 64 2.7 User Operations ................................................ 72 2.8 Spelling Checking and Hyphenation .............................. 77 2.9 Summary ........................................................ 90

Design Pattern Catalog .............................................. 93

3 Creational Patterns............................................... 94 Abstract Factory ................................................... 99 Builder ........................................................... 110 Factory Method .................................................... 121 Prototype ......................................................... 133 Singleton ......................................................... 144

Discussion ofCreational Patterns .................................. 153

2

Design Patterns: Elements of Reusable Object-Oriented Software

4 Structural Patterns .............................................. 155 Adapter ........................................................... 157 Bridge ............................................................ 171 Composite......................................................... 183 Decorator ......................................................... 196 Façade ............................................................ 208 Flyweight ......................................................... 218 Proxy ............................................................. 233

Discussion of Structural Patterns ................................. 246

5 BehavioralPatterns .............................................. 249 Chain of Responsibility ........................................... 251 Command ........................................................... 263 Interpreter ....................................................... 274 Iterator .......................................................... 289 Mediator.......................................................... 305 Memento ........................................................... 316 Observer .......................................................... 326 State ............................................................. 338 Strategy .......................................................... 349 Template Method ................................................... 360 Visitor...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Los pokemon
  • Pokemon
  • pokemon
  • pokemon
  • pokemon
  • pokemon
  • pokemona
  • Pokemon

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS