Class MainMenuUnitBrowserDialog

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

public class MainMenuUnitBrowserDialog extends AbstractUnitSelectorDialog
This Dialog is used as a unit browser for MegaMek's main menu. It doesn't allow selecting units. Since there are no game options in the main menu, the options are fixed to show units without restriction.
See Also:
  • Constructor Details

    • MainMenuUnitBrowserDialog

      public MainMenuUnitBrowserDialog(JFrame parent, UnitLoadingDialog unitLoadingDialog)
  • Method Details

    • updateOptionValues

      public void updateOptionValues()
      Description copied from class: AbstractUnitSelectorDialog
      This is used to update any values that are set based on individual options
      Specified by:
      updateOptionValues in class AbstractUnitSelectorDialog
    • createButtonsPanel

      protected JPanel createButtonsPanel()
      Description copied from class: AbstractUnitSelectorDialog
      This is used to create the bottom row of buttons for the interface
      Specified by:
      createButtonsPanel in class AbstractUnitSelectorDialog
      Returns:
      the panel containing the buttons to place in the interface
    • select

      protected void select(boolean close)
      Description copied from class: AbstractUnitSelectorDialog
      This is the function to add a unit to the current interface. That could be a purchase (MekHQ), addition (MekHQ), or unit selection (MegaMek/MegaMekLab)
      Specified by:
      select in class AbstractUnitSelectorDialog
      Parameters:
      close - a boolean to modify how the function will work. In MegaMek this is used to close the dialog, in MekHQ to GM add.