Design Patterns Java™ Workbook
Chapter 18. Prototype Consider copying an OzTextArea object. When you investigate this class, you see that it is a subclass of J ...
Chapter 18. Prototype references to. Rather than using Object.clone() to create a new GUI object, it is safer to instantiate the ...
Chapter 18. Prototype machine. On this project, your job is to create the machine simulation objects, which you have completed a ...
Chapter 18. Prototype Figure 18.4. X and Y coordinates in a bay are measured as offsets from the northwest corner of the bay. Yo ...
Chapter 18. Prototype This code compiles and runs without throwing an exception. However, the code contains a defect that Challe ...
Chapter 18. Prototype Summary................................................................................................... ...
Chapter 19. Memento............................................................................................................. ...
Chapter 19. Memento Figure 19.1. This visualization adds machines at the top left location of the panel and lets a user drag mac ...
Chapter 19. Memento Figure 19.2. A Visualization object lets a user paint a picture of a prospective factory. When the user clic ...
Chapter 19. Memento is a list of machine simulators. The restore() method for FactoryModel takes this list as an argument and lo ...
Chapter 19. Memento protected void save() { int status = fc().showSaveDialog(null); if (status == JFileChooser.APPROVE_OPTION) { ...
Chapter 19. Memento protected void load() { int dialogStatus = fc().showOpenDialog(null); if (dialogStatus == JFileChooser.APPRO ...
Chapter 19. Memento storage only: specifically, the storage of an object's data in another object. If you widen the meaning of m ...
Part IV: Operation Patterns.................................................................................... Part IV: Operati ...
Chapter 20. Introducing Operations.............................................................................................. ...
Chapter 20. Introducing Operations Introduction to Algorithms (Cormen, Leiserson, and Rivest 1990) says: "An algorithm is any we ...
Chapter 20. Introducing Operations The Mechanics of Methods..................................................................... ...
Chapter 20. Introducing Operations Figure 20.2. The classes Firework and Rocket each have a static method with the same signatur ...
Chapter 20. Introducing Operations Figure 20.3. Of the classes shown, only Throwable, Exception, and IOException must be handled ...
Chapter 20. Introducing Operations Summary...................................................................................... ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf