Understanding Java Chapters 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21
Understanding Java: Chapter 16
These pages contain links to the programs that are developed in Chapter 16. The title of this chapter is: Decoupling the model from the user interface.
Model.java | A Model class that extends the Observable class |
ViewOne.java | A viewer implements the Observer interface |
MVCProg.java | Using addObserver to register tViewOne as a viewer of tModel |
ViewTwo.java | Another class (ViewTwo ) that implements the Observer interface |
MVCProg.java | MVCProg registers tViewOne and tViewTwo as viewers of tModel |
VCThree.java | A class (called VCThree ) that acts as a controller as well as a viewer |
MVCProg.java | A program which registers tViewOne , tViewTwo and tVCThree as Model viewers |
PersonLinkedQueueDriver.java | The PersonLinkedQueueProg program rewritten to use MVC |
PersonQueueController.java | A class providing a controller for the PersonQueue |
QueueCounter.java | A class providing a Queue viewer that outputs the size of the queue |
QueueLister.java | A class providing a Queue viewer that lists the items of the queue |
LinkedQueue.java | An Observable version of the LinkedQueue class |
Queue.java | An interface for an Observable queue |
barry.cornelius@oucs.ox.ac.uk
.