All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bank.gui.AtmGuiView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----bank.gui.ExtendedApplet
                                           |
                                           +----bank.gui.AtmGuiView

public class AtmGuiView
extends ExtendedApplet
implements Observer
ATMの画面をあらわすビュークラス #pattern: Command #pattern MVC #pattern Builder

See Also:
Command, AtmGui, UiBuilder

Variable Index

 o accountNumField
 o balanceMessage
 o leftPanel
 o logic
 o message
 o moneyField
 o rightPanel
 o state

Constructor Index

 o AtmGuiView()

Method Index

 o build()
init()から呼ばれるフックメソッド Builderを使用してウィジェットの構築を行う #pattern: TemplateMethod
 o buildAccountIdAskPanel()
 o buildAtmEnterPanel()
 o buildAtmMenuPanel()
 o buildBlankPanel()
 o buildInputErrorPanel()
 o buildLeftPanel()
 o buildMoneyAskPanel()
 o buildResultPanel()
 o buildRightPanel()
 o buildWelcomePanel()
 o clearInputData()
 o displayLeftView(String)
 o displayRightView(String)
 o getAccountNumber()
口座番号の値を得る 入力が不正な場合は-1を返す
 o getAtmGuiLogic()
 o getLayoutManager(Container)
 o getMoney()
 o getSize()
 o getTitle()
 o main(String[])
 o makeCommand(short, Object)
特定のidについてのコマンドオブジェクトを生成する #pattern: FactoryMethod
 o setAtmGuiLogic(AtmGuiLogic)
 o setInitValues()
スーパクラスExtendedAppletのinit()から呼ばれるフックメソッド
 o showAccountIdAskingView()
 o showAccountNotFoundView()
 o showAccountOperationAskingView()
 o showCheckBalanceFailureView()
 o showDepositFailureView()
 o showDepositView()
 o showInputErrorView()
 o showOverWithdrawView()
 o showResultView(AtmGuiStateInterface)
 o showStartView()
 o showWithdrawFailureView()
 o showWithdrawView()
 o update(Observable, Object)
AtmGuiStateの状態変化により呼ばれるupdateメソッド #pattern: Observer

Variables

 o state
 protected AtmGuiState state
 o logic
 protected AtmGuiLogic logic
 o accountNumField
 protected TextField accountNumField
 o moneyField
 protected TextField moneyField
 o message
 protected Label message
 o balanceMessage
 protected Label balanceMessage
 o rightPanel
 protected Panel rightPanel
 o leftPanel
 protected Panel leftPanel

Constructors

 o AtmGuiView
 public AtmGuiView()

Methods

 o build
 protected void build()
init()から呼ばれるフックメソッド Builderを使用してウィジェットの構築を行う #pattern: TemplateMethod

Overrides:
build in class ExtendedApplet
 o buildAccountIdAskPanel
 private Panel buildAccountIdAskPanel()
 o buildAtmEnterPanel
 private Panel buildAtmEnterPanel()
 o buildAtmMenuPanel
 private Panel buildAtmMenuPanel()
 o buildBlankPanel
 private Panel buildBlankPanel()
 o buildInputErrorPanel
 private Panel buildInputErrorPanel()
 o buildLeftPanel
 private Panel buildLeftPanel()
 o buildMoneyAskPanel
 private Panel buildMoneyAskPanel()
 o buildResultPanel
 private Panel buildResultPanel()
 o buildRightPanel
 private Panel buildRightPanel()
 o buildWelcomePanel
 private Panel buildWelcomePanel()
 o clearInputData
 protected void clearInputData()
 o displayLeftView
 protected void displayLeftView(String kind)
 o displayRightView
 protected void displayRightView(String kind)
 o getAccountNumber
 public int getAccountNumber()
口座番号の値を得る 入力が不正な場合は-1を返す

Returns:
int
 o getAtmGuiLogic
 public AtmGuiLogic getAtmGuiLogic()
Returns:
bank.gui.AccountGuiLogic
 o getLayoutManager
 protected LayoutManager getLayoutManager(Container cont)
 o getMoney
 public int getMoney()
 o getSize
 public Dimension getSize()
Overrides:
getSize in class ExtendedApplet
 o getTitle
 public String getTitle()
Overrides:
getTitle in class ExtendedApplet
 o main
 public static void main(String args[])
 o makeCommand
 protected Command makeCommand(short commandKind,
                               Object callback)
特定のidについてのコマンドオブジェクトを生成する #pattern: FactoryMethod

Overrides:
makeCommand in class ExtendedApplet
 o setAtmGuiLogic
 public void setAtmGuiLogic(AtmGuiLogic logic)
Parameters:
logic - bank.gui.AtmGuiLogic
 o setInitValues
 protected void setInitValues()
スーパクラスExtendedAppletのinit()から呼ばれるフックメソッド

Overrides:
setInitValues in class ExtendedApplet
 o showAccountIdAskingView
 public void showAccountIdAskingView()
 o showAccountNotFoundView
 public void showAccountNotFoundView()
 o showAccountOperationAskingView
 public void showAccountOperationAskingView()
 o showCheckBalanceFailureView
 public void showCheckBalanceFailureView()
 o showDepositFailureView
 public void showDepositFailureView()
 o showDepositView
 public void showDepositView()
 o showInputErrorView
 public void showInputErrorView()
 o showOverWithdrawView
 public void showOverWithdrawView()
 o showResultView
 public void showResultView(AtmGuiStateInterface newState)
 o showStartView
 public void showStartView()
 o showWithdrawFailureView
 public void showWithdrawFailureView()
 o showWithdrawView
 public void showWithdrawView()
 o update
 public void update(Observable o,
                    Object arg)
AtmGuiStateの状態変化により呼ばれるupdateメソッド #pattern: Observer

Parameters:
o - java.util.Observable
arg - java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index