Class ForceGenerationOptionsPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
megamek.client.ui.dialogs.randomArmy.ForceGenerationOptionsPanel
All Implemented Interfaces:
ActionListener, FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ForceGenerationOptionsPanel extends JPanel implements ActionListener, FocusListener
Panel that allows choice of year, faction, rating, unit type
See Also:
  • Constructor Details

  • Method Details

    • getNumUnits

      public int getNumUnits()
    • getYear

      public int getYear()
    • getFaction

      public FactionRecord getFaction()
    • getUnitType

      public Integer getUnitType()
    • getRating

      public String getRating()
    • setYear

      public void setYear(int year)
    • getIntegerOption

      public Integer getIntegerOption(String key)
    • getBooleanOption

      public Boolean getBooleanOption(String key)
    • getStringOption

      public String getStringOption(String key)
    • getListOption

      public List<?> getListOption(String key)
    • updateFactionChoice

      public void updateFactionChoice()
    • updateSubfactionChoice

      public void updateSubfactionChoice()
    • updateRatingChoice

      public void updateRatingChoice()
      When faction or sub faction is changed, refresh ratings combo box with appropriate values for selected faction.
    • actionPerformed

      public void actionPerformed(ActionEvent ev)
      Specified by:
      actionPerformed in interface ActionListener
    • rememberSelections

      public void rememberSelections()
      Saves the current choices so the dialog reopens on them. Retyping a faction, command, unit type and rating on every visit is the single most repeated action in this dialog.
    • focusGained

      public void focusGained(FocusEvent e)
      Specified by:
      focusGained in interface FocusListener
    • focusLost

      public void focusLost(FocusEvent e)
      Specified by:
      focusLost in interface FocusListener
    • updateGeneratedUnits

      public void updateGeneratedUnits(List<MekSummary> list)
    • generateMekSummaries

      public List<MekSummary> generateMekSummaries()
    • setGameOptions

      public void setGameOptions(GameOptions gameOptions)
    • setSkillGenerator

      public void setSkillGenerator(AbstractSkillGenerator skillGenerator)