All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bank.gui.UiBuilder

java.lang.Object
   |
   +----bank.gui.UiBuilder

public class UiBuilder
extends Object
Awtコンポーネントを作成し、レイアウトを行うBuilderクラス #pattern: Builder


Variable Index

 o components
 o target

Constructor Index

 o UiBuilder()
 o UiBuilder(Container)

Method Index

 o buildOn(Container)
 o buildWith(LayoutManager)
 o clearComponents()
 o makeButton(String)
 o makeCancelButton(Cancelable)
 o makeCancelButton(String, Cancelable)
 o makeLabel(String)
 o makeOKButton(Acceptable)
 o makeOKButton(String, Acceptable)
 o makePanel(LayoutManager)
 o makeTextField(int)
 o setGridBagConstraints(int, int, int, int, GridBagConstraints)
 o setGridBagLayout(int, int, int, int, Component, GridBagLayout, int)
 o setTarget(Container)
 o storeComponents(Component)
 o tieAcceptButtonCommand(Button, Acceptable)
 o tieButtonCommand(Button, Command)
 o tieCancelButtonCommand(Button, Cancelable)

Variables

 o target
 protected Container target
 o components
 protected Vector components

Constructors

 o UiBuilder
 UiBuilder()
 o UiBuilder
 public UiBuilder(Container cont)
Parameters:
cont - java.awt.Container

Methods

 o buildOn
 public Container buildOn(Container cont)
 o buildWith
 public Panel buildWith(LayoutManager layoutManager)
 o clearComponents
 public void clearComponents()
 o makeButton
 public Button makeButton(String aLabel)
 o makeCancelButton
 public Button makeCancelButton(Cancelable callback)
Parameters:
callback - Cancelable
Returns:
java.awt.Button
 o makeCancelButton
 public Button makeCancelButton(String label,
                                Cancelable callback)
Parameters:
label - java.lang.string
callback - Cancelable
Returns:
java.awt.Button
 o makeLabel
 public Label makeLabel(String aLabel)
 o makeOKButton
 public Button makeOKButton(Acceptable callback)
 o makeOKButton
 public Button makeOKButton(String label,
                            Acceptable callback)
Parameters:
callback - bank.util.Acceptable
label - java.lang.String
 o makePanel
 public Panel makePanel(LayoutManager aLayout)
 o makeTextField
 public TextField makeTextField(int length)
 o setGridBagConstraints
 protected GridBagConstraints setGridBagConstraints(int x,
                                                    int y,
                                                    int w,
                                                    int h,
                                                    GridBagConstraints gc)
 o setGridBagLayout
 public Component setGridBagLayout(int x,
                                   int y,
                                   int w,
                                   int h,
                                   Component aComp,
                                   GridBagLayout gb,
                                   int fill)
 o setTarget
 public void setTarget(Container cont)
 o storeComponents
 protected void storeComponents(Component comp)
 o tieAcceptButtonCommand
 protected void tieAcceptButtonCommand(Button button,
                                       Acceptable callback)
 o tieButtonCommand
 protected void tieButtonCommand(Button button,
                                 Command command)
 o tieCancelButtonCommand
 protected void tieCancelButtonCommand(Button button,
                                       Cancelable callback)

All Packages  Class Hierarchy  This Package  Previous  Next  Index