Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

echopoint.bank
Class BankController  view BankController download BankController.java

java.lang.Object
  extended byechopoint.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.


Field Summary
private  echopoint.bank.entity.Account account
           
static int ACCOUNTDETAILS
           
private  echopoint.bank.entity.Account[] accounts
           
private  echopoint.bank.entity.Customer customer
           
private  BankInstance instance
           
static int LOGIN
           
static int LOGOUT
           
static int MYFINANCES
           
private  int oldState
           
static int START
           
private  int state
           
static int TRANSACT
           
private  BankControllerVisual visuals
           
 
Constructor Summary
BankController(BankInstance instance)
          BankController constructor comment.
 
Method Summary
 void actionPerformed(nextapp.echo.event.ActionEvent e)
          Invoked when an action occurs.
 echopoint.bank.entity.Account getAccount()
           
 echopoint.bank.entity.Account[] getAccounts()
           
 echopoint.bank.entity.Customer getCustomer()
          The current customer in session
private  echopoint.bank.db.DatabaseSession getDbSession()
           
 BankInstance getInstance()
           
 int getOldState()
           
 int getState()
           
private  BankControllerVisual getVisuals()
           
 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.
 void opSetSelectedAccount(int accountIndex)
          Shows the selected account details for a given account index
 void refresh()
          Called to refresh the components contents based on the state of the application.
(package private)  void reportError(java.lang.Exception e)
           
private  void setOldState(int newOldState)
           
private  void setState(int newState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BankController

public BankController(BankInstance instance)
BankController constructor comment.

Method Detail

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)