Modal Dialog Boxes
I. Introduction
A modal dialog box blocks user input to all other windows in the same application when it is visible. Users have to close a modal dialog box before other windows in the same application can get focus. Accordingly, only one modal dialog boxes shown at one time. Modal dialog boxes are commonly used in Graphic User Interface (GUI) to display warning, errors, confirmations, etc.
II. Types of Modal Dialog Box
Buttons | Operations | ||||
---|---|---|---|---|---|
Ok |
Cancel |
| Reset |
| |
III. VTT Modal Dialog Java Class/Methods
GUI Component | GUI Controller |
---|---|
JButton | ActionListener |
JTextField | ActionListener |
JComboBox | ActionListener |
JCheckBox | ItemListener |
JRadioButton | ActionListener |
Accessibility | Method | Procedures | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public | Constructor( ) |
public | Show( ) |
| public | UpdateGui( ) |
| private | UpdateLocalVarsFromGui( ) |
| private | UpdateLocalVarsFromGlobal( ) |
| private | UpdateGuiFromLocalVars( ) |
| private | InitGuiControllers( ) |
| private | InitGuiComponents( ) |
| |