Copyright © 1998 Sita Ramakrishnan, Monash University All rights reserved

Light Views

HomeCase StudiesOO TheoryHelp

Light Views Icon


Case Studies

Introduction

Event Testing

Inheritance & Collaboration

State Chart Diagram (UML)

Demo Description

BeachMap Applet BeachParking Applet BeachInfo Applet BeachStatistic Applet Beaches & Parking

Quiz

Questionnaire

Beaches and Parking Case Study

BeachParking Applet

Demonstrations:

The BeachParking applet is a supporting applet whose purpose is to display the parking information around the beach area on a particular day at a particular time slot.

The BeachParking is a descendant of Spreadsheet class which inherits from Applet class. Spreadsheet applet can be found in demo/SpreadSheet in the Java Development Kit. The real work in carried out by the Spreadsheet class. However, it is also important that BeachParking class prepares the data required by its ancestor correctly.

BeachParking

This data is stored in a ParkingData object which will be given by BeachInfo applet when its statistic button is pressed. The ParkingData is then validated. If the data is valid, the data is put into individual cell of the spreadsheet. After the process is done the applet is repainted to update the screen. It is BeachParking job to make sure that the spreadsheet is big enough to display the all of the information in the ParkingData.

 

 


Funded by Committee of University Teaching And Staff Development (CUTSD) through DEETYA, 1998