java.lang.Object
echopoint.bank.BankController
- All Implemented Interfaces:
- nextapp.echo.event.ActionListener, java.util.EventListener
- public final class BankController
- extends java.lang.Object
- implements nextapp.echo.event.ActionListener
An application controller class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
START
public static final int START
- See Also:
- Constant Field Values
LOGIN
public static final int LOGIN
- See Also:
- Constant Field Values
LOGOUT
public static final int LOGOUT
- See Also:
- Constant Field Values
MYFINANCES
public static final int MYFINANCES
- See Also:
- Constant Field Values
ACCOUNTDETAILS
public static final int ACCOUNTDETAILS
- See Also:
- Constant Field Values
TRANSACT
public static final int TRANSACT
- See Also:
- Constant Field Values
state
private int state
oldState
private int oldState
instance
private BankInstance instance
visuals
private BankControllerVisual visuals
customer
private echopoint.bank.entity.Customer customer
accounts
private echopoint.bank.entity.Account[] accounts
account
private echopoint.bank.entity.Account account
BankController
public BankController(BankInstance instance)
- BankController constructor comment.
actionPerformed
public void actionPerformed(nextapp.echo.event.ActionEvent e)
- Invoked when an action occurs.
- Specified by:
actionPerformed in interface nextapp.echo.event.ActionListener
getAccount
public echopoint.bank.entity.Account getAccount()
getAccounts
public echopoint.bank.entity.Account[] getAccounts()
getCustomer
public echopoint.bank.entity.Customer getCustomer()
- The current customer in session
getDbSession
private echopoint.bank.db.DatabaseSession getDbSession()
getInstance
public BankInstance getInstance()
getOldState
public int getOldState()
getState
public int getState()
getVisuals
private BankControllerVisual getVisuals()
opLogUserIn
public echopoint.bank.visuals.OpMessage opLogUserIn(java.lang.String custNumber,
java.lang.String custPassword)
- Logs a user into the system and if they are found, the finds the list
of Accounts for that customer.
opSetSelectedAccount
public void opSetSelectedAccount(int accountIndex)
- Shows the selected account details for a given account index
refresh
public void refresh()
- Called to refresh the components contents based on the
state of the application.
reportError
void reportError(java.lang.Exception e)
setOldState
private void setOldState(int newOldState)
setState
private void setState(int newState)