The first book to cover the creation of a complete
application with Dolphin Smalltalk!
Dolphin Smalltalk is a pure object-oriented programming
language that enables you to build applications that are
fully featured and easy to maintain. If you have no
previous programming experience or want to build on your
knowledge of Smalltalk, this book is for you. It will show
you, step-by-step, how to design and build a complete
application in Dolphin Smalltalk.
You will learn:
- How to split an application into components
- How to build these components using object-oriented
techniques
- How to apply principles learned in developing different
applications
Features:
- A running example throughout the text, using Formula
One results tracking and score-keeping to illustrate the
framework in which the whole application works
- CD ROM containing Dolphin Smalltalk 4.0, plus source
code for all the chapters
Contents
Preface.
1. Introduction.
The Smalltalk
language.
The Dolphin Smalltalk environment.
The file setup.
The Launcher.
The workspace.
Playground.
2. The application.
What we are going to
build.
How we are going to build the application.
A standard pattern for the components.
3. The first application component: the Team.
The Team
model.
The class hierarchy
browser.
Creating our first class.
Summary.
The Team presenter.
Summary.
Creating a
view.
The view composer.
The Team view.
Testing the Team view.
The finishing touch.
The Microsoft look.
Summary.
Some
basic maintenance work.
4. The Driver component.
The Driver model.
The abstract RacingActor
class.
Modifications to the Team class.
The Driver class.
Summary.
The Driver presenter and view.
The Driver
presenter.
The Driver view.
Testing the view.
Summary.
The driver's gender.
The 1-of-n variable in the
model.
Presenting 1-of-n variables.
Radio buttons.
List presenters.
Summary.
Some loose ends.
The caption.
A picture paints a thousand words.
Summary.
5. The Season component.
The Season model.
The Collection
classes.
The score definition.
Summary.
The name of an object.
The Season presenter and view.
The SeasonDialogPresenter
definition.
The Season view.
Copy and deepCopy.
Summary.
Multi-column lists.
A virtual list.
The multi-column ListView.
Summary.
6. The RaceCar component.
The RaceCar model.
The RaceCar class
definition.
The starting number.
The Team association.
The default driver.
The link with the season.
Summary.
Error handling and the debugger.
Error handling in Dolphin
Smalltalk.
The debugger.
Debugger playground.
Another way of writing Smalltalk.
Our own error handling mechanism.
Summary.
The RaceCar presenter and view.
The lists of teams and
drivers.
The RaceCarView as subclass of the Shell class.
Building the view for the race cars.
Summary.
7. The Circuit component.
The basic Circuit
model.
The length of the
circuit.
The lap record.
Summary.
The Circuit presenter and view.
The milliseconds
TypeConverter.
The length of the circuit.
Summary.
8. The Race component.
The Race model.
The Race presenter and view.
The Race dialog.
The main Race view.
Entering the results.
Sorting the starters.
Summary.
9. Bringing the components
together.
The basic racing
application model.
The model.
The race application presenter.
The application framework view.
Summary.
Maintaining items.
The maintenance
methods.
Context menus and menu bars.
Enabling and disabling commands.
Toolbars.
Summary.
Integrating the season-dependent components.
The tree model.
Add branches for the Race and RaceCar.
Tidying up the race application components.
Global variables
revisited.
Opening a race for the results.
10. The results.
The results for the
season.
Collecting the
results.
A presenter for the results.
Showing the results in the application shell.
Dynamic resizing of multi-column lists.
Summary.
A graph of the results.
A short information
requirement analysis.
The LineGraph view.
A user-definable graph.
Summary.
11. Saving and importing the
race data.
Saving object data.
Modifications to the
presenter and the view.
Modifications to the models.
Save data on exit.
Summary.
Importing comma-separated data.
A generic import
class.
The data import wizard.
Summary.
Importing from the Web.
The
HTML import
model.
The Web data import wizard.
Summary.
XML data.
12. Application
deployment.
Making an
executable.
Web deployment.
Summary.
Appendix A. Other Smalltalk resources.
Appendix B. Overview of the main classes.
Appendix C. Additional tools.
Appendix D. Date and Time field formatting.
Appendix E. The CD.
Index.