Class SelectModePanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class SelectModePanel extends JDialog implements ActionListener
This java class is used to create and show a panel for the selecting mode of showing the results.

Two modes are available: results of each iteration or average results of all iteration.

Author:
Sina Tabakhi
See Also:
  • Field Details

  • Constructor Details

    • SelectModePanel

      public SelectModePanel()
      Creates new form SelectModePanel. This method is called from within the constructor to initialize the form.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      The listener method for receiving action events. Invoked when an action occurs.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - an action event
    • btn_okActionPerformed

      private void btn_okActionPerformed(ActionEvent e)
      This method sets an action for the btn_ok button.
      Parameters:
      e - an action event
    • getNameMode

      public SelectModeType getNameMode()
      This method returns the type of mode. Two values can be returned:
      - "Average": means that the average results of all iteration
      - "Total": means that the total results of each iteration
      Returns:
      the nameMode parameter
    • setNameMode

      public void setNameMode(SelectModeType nameMode)
      This method sets the type of mode. Two types of modes are as follows:
      - "Average": shows the average results of all iteration
      - "Total": shows the total results of each iteration
      Parameters:
      nameMode - the name of mode