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.
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