View Part 2Homepage  « Case Study « View Part 2

In our final section on coding the case study we complete the view code elements. We start the section by coding the RunModeDialog class which creates a dialog box to accept and validate run mode options for the Manufacturer application. We then implement the code for when a user has entered the manufacturer application with a run mode of "server". We finish the section and complete the coding for the Manufacturer application by coding the ManufacturerWindow class and uncommenting the instantiations of the ManufacturerServerStartupWindow and ManufacturerWindow objects within the ManufacturerApplicationStartup class.

Validate Run Mode Options

In our first lesson of the section we code up the RunModeDialog class which creates a dialog box to accept and validate run mode options for the Manufacturer application. The class provides a standard dialog box which allows the user to select the location of the file (which may be a physical file in NON_NETWORK_CLIENT mode, or the address (and, optionally, the port) of the server for NETWORK_CLIENT mode.

Create Server Classes

In this lesson we implement the code for when a user has entered the manufacturer application with a run mode of "server". This entails the graphical user interface the user sees when they start the Manufacturer application in "server" mode as well as providing the logic for displaying configurable objects and starting and exiting the server in a safe manner.

Create Manufacturer Window

In the final lesson of the section we complete the coding for the Manufacturer application by coding the ManufacturerWindow class which allows users to view and interact with the Manufacturer file in an application window. We also uncomment the instantiations of the ManufacturerServerStartupWindow and ManufacturerWindow objects within the ManufacturerApplicationStartup class.

go to home page Homepage go to home page Top

All the View Part 2 lessons are listed below. Click a link to go to that lesson.


View Part 2

Validate Run Mode Options

Create Server Classes

Create Manufacturer Window