Content
10.4
Case
Study: JBANK Application
10.4.1
The
JBANK Application
In previous chapters, all interactions
between a teller and a customer, or a customer and his or her
accounts, have been through the Console class. In addition, all input
has used the System.in object. These are fine for programmers to test
their applications. Once end users have to use the applications,
extensive GUIs need to be provided. The banking application includes
the creation of two GUIs. They are a TellerGUI and an ATMGUI
-
. The tellers of the
bank will use the TellerGUI. The TellerGUI provides the
teller with the ability to retrieve information about customer
accounts, add new customers, change customer and account data, and
conduct withdrawal and deposit transactions. The ATMGUI provides a
user interface for customers. This interface provides less
functionality than the TellerGUI. Customers can query balances,
withdraw money, and deposit money into their accounts.
Throughout this chapter, the code for
the TellerGUI class has been provided. Now, complete the code for
the ATMGUI adding the business logic to these classes. This will
require the modification of the handler and controller classes to
include code for conducting customer account transactions.
The model view controller design
pattern is employed in these labs. The need for a connection between
the view class and the handler class is implemented through the use of
an interface controller. This interface serves as a marker interface.
It is a way of labeling classes as being of the same kind. This
interface does not have any methods declared. Implement this interface
in the lab to help connect the model, view, and controller classes. Read
the instructions regarding this implementation carefully.
Lab
Activity
Finalizing
the Model View Controller
Pattern for the ATMGUI Class
This lab will complete the ATMGUI application.
In this lab, add code to allow customers to
withdraw and deposit money into their accounts.
Several opportunities will be given to include
many Java language constructs of logic and loop.
Wyszukiwarka
Podobne podstrony:
contentcontentcontentcontentcontentcontentcontentcontentcontentfunction domnode get contentcontentcontentcontentcontentcontentcontentwięcej podobnych podstron