ActionScript 3.0 Design Patterns
420 | Chapter 11: Strategy Pattern As you can see, you can do quite a bit with a single method. To add more options to sorting, ...
Working with String Strategies | 421 Feel free to change any of the support classes’ features to meet your own tastes. String St ...
422 | Chapter 11: Strategy Pattern Keep in mind that the call to the concrete class methods,workStringsandworkSorts, are calls t ...
Summary | 423 Summary After examining some applications using the Strategy design pattern, you can see the scope of possibilitie ...
...
PART V V.Multiple Patterns A multiple personality is in a certain sense normal. —George Herbert Mead (Describing what is normal ...
The second multiple design pattern is an implementation of the Symmetric Proxy pattern. The Symmetric Proxy uses a Template Meth ...
427 Chapter 12 CHAPTER 12 Model-View-Controller Pattern 12 According to the standard model billions of years ago some little qua ...
428 | Chapter 12: Model-View-Controller Pattern Model The model is responsible for managing the state of the application. The ap ...
Communication Between the MVC Elements | 429 triggered by a user interacting with the application. The sequence of events is rep ...
430 | Chapter 12: Model-View-Controller Pattern prices from a web service. Then, whenever the model updated its stock prices, it ...
Minimalist Example of an MVC Pattern | 431 grouped together in a tabbed panel that in turn will be part of a window with other t ...
432 | Chapter 12: Model-View-Controller Pattern addEventListener(type:String, listener:Function, useCapture:Boolean = false, pri ...
Minimalist Example of an MVC Pattern | 433 TheModel class extends theEventDispatcher class that already implements the IEventDis ...
434 | Chapter 12: Model-View-Controller Pattern Note that the controller has a constructor that takes an instance of the model a ...
Minimalist Example of an MVC Pattern | 435 The view needs to hold references to both the model and controller as it initiates co ...
436 | Chapter 12: Model-View-Controller Pattern done is to instantiate the model, view, and controller classes. Example 12-6 sho ...
Minimalist Example of an MVC Pattern | 437 implementations in the MVC. Our view elements are going to get more comple xas they c ...
438 | Chapter 12: Model-View-Controller Pattern TheComponentViewclass shown in Example 12-7 defines the abstract interface for c ...
Minimalist Example of an MVC Pattern | 439 Note the overridden update( ) function in the CompositeView class shown in Example 12 ...
«
18
19
20
21
22
23
24
25
26
27
»
Free download pdf