Visual Tagging Tool

Modeless Dialog Boxes

I. Introduction

A modeless dialog box does not block user input. Accordingly, modeless dialog boxes can grow in number. Modeless dialog boxes are commonly used in Graphic User Interface (GUI) to display and update data of the system so users can monitor/change the system data through dialog box at the same time. There are two types of modeless dialog boxes:

  • Display data only
  • Update data

II. Modeless Dialog Box: Display Data Only

  • Standard Buttons and Operation
    ButtonsOperations
    Close
  • Close the dialog box
  • Data Members
    • GUI controllers:
      The controllers for Java GUI components. The table below shows commonly used in VTT:

      GUI ComponentGUI Controller
      JButtonActionListener
      JTextFieldActionListener
      JComboBoxActionListener
      JCheckBoxItemListener
      JRadioButtonActionListener

  • Methods
    AccessibilityMethodProcedures
    publicConstructor( )
  • InitGuiControllers( )
  • InitGuiComponents( )
  • publicShow( )
  • UpdateGui( )
  • Open dialog box
  • publicUpdateGui( )
  • UpdateGuiFromGlobal( )
  • privateUpdateGuiFromGlobal( )
  • Update the GUI display from the global variables
  • privateInitGuiControllers( )
  • Init controller, add listeners, set action commands, etc.
  • privateInitGuiComponents( )
  • Set title, location, size, compose the GUI object

III. Modeless Dialog Box: Update Data

  • Standard Buttons and Operation
    ButtonsOperations
    Ok
  • Update local variables from GUI
  • Update global variables from local variables
  • Close the dialog box
  • Cancel
  • Close the dialog box
  • Apply
  • Update local variables from GUI (input)
  • Update global variables from local variables
  • Update GUI (display) from local variables
  • Reset
  • Update GUI (display) from local variables
  • Data Members
    • Local variables:
      Use as a local copy of the global variables manipulated in the dialog box
    • GUI controllers:
      The controllers for Java GUI components. The table below shows commonly used in VTT:

      GUI ComponentGUI Controller
      JButtonActionListener
      JTextFieldActionListener
      JComboBoxActionListener
      JCheckBoxItemListener
      JRadioButtonActionListener

  • Methods
    AccessibilityMethodProcedures
    publicConstructor( )
  • InitGuiControllers( )
  • InitGuiComponents( )
  • publicShow( )
  • UpdateGui( )
  • Open dialog box
  • publicUpdateGui( )
  • UpdateLocalVarsFromGlobal( )
  • UpdateGuiFromLocalVars( )
  • privateUpdateLocalVarsFromGui( )
  • Update the values of local variables from GUI inputs
  • privateUpdateLocalVarsFromGlobal( )
  • Update the values of local variables from global variables
  • privateUpdateGuiFromLocalVars( )
  • Update the GUI display from the local variables
  • privateInitGuiControllers( )
  • Init controller, add listeners, set action commands, etc.
  • privateInitGuiComponents( )
  • Set title, location, size, compose the GUI object