Package betterBankingGUImaven
Class ManipulateAccount_GUI
Object
ManipulateAccount_GUI
- All Implemented Interfaces:
ActionListener
,EventListener
public class ManipulateAccount_GUI
extends Object
implements ActionListener
This class defines a new GUI for the software partition,
and implements methods to manipulate an Account object.
- Version:
- 1.0
- Author:
- Tristan Parry
-
Constructor Summary
Constructors Constructor Description ManipulateAccount_GUI(Client clientArg, Account accountArg)
This constructor creates a GUI for the ManipulateAccount method of the BetterBanking software. -
Method Summary
Modifier and Type Method Description void
actionPerformed(ActionEvent ae)
This method accepts user input for a valid BetterBanking Account operation, and performs the manipulation on the provided Account object.static void
manipulateAccount(Client clientArg, Account accountArg)
This method runs the GUI for the ManipulateAccount_GUI class, by instantiating/running a ManipulateAccount_GUI window object.void
switchJPanel(JPanel newPanel)
This method allows for efficient switching of JPanels in the GUI JLayeredPane.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ManipulateAccount_GUI
This constructor creates a GUI for the ManipulateAccount method of the BetterBanking software.- Parameters:
clientArg
- Client object used to access the corresponding BetterBanking Client accountaccountArg
- Account object being manipulated in the program
-
-
Method Details
-
actionPerformed
public void actionPerformed(ActionEvent ae)This method accepts user input for a valid BetterBanking Account operation, and performs the manipulation on the provided Account object.- Specified by:
actionPerformed
in interfaceActionListener
-
switchJPanel
public void switchJPanel(JPanel newPanel)This method allows for efficient switching of JPanels in the GUI JLayeredPane.- Parameters:
newPanel
- JPanel object to be switched/brought into view
-
manipulateAccount
This method runs the GUI for the ManipulateAccount_GUI class, by instantiating/running a ManipulateAccount_GUI window object.- Parameters:
clientArg
- Client object used to access the corresponding BetterBanking Client accountaccountArg
- Account object being manipulated in the program
-