Class EquipChoicePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class EquipChoicePanel extends JPanel
This class builds the Equipment Panel for use in MegaMek and MekHQ
See Also:
  • Constructor Details

  • Method Details

    • initialize

      public void initialize()
    • applyChoices

      public void applyChoices()
    • refreshNeuralInterfaceCheckboxes

      public void refreshNeuralInterfaceCheckboxes()
      Refreshes the neural interface checkboxes based on current pilot implant status. Called when switching to the Equipment tab to pick up changes made in the Pilot tab.

      This method only auto-CHECKS the checkbox when an implant is detected but hardware is missing. It respects manual unchecking - if the user has unchecked the box (hardware not present and box unchecked), it won't force it back to checked. This allows testing scenarios where pilot has implant but unit lacks hardware.

    • setDNICockpitModSelected

      public void setDNICockpitModSelected(boolean selected)
      Sets the DNI Cockpit Modification checkbox state directly. Called from CustomMekDialog when a DNI implant option is toggled.
      Parameters:
      selected - true to check the checkbox, false to uncheck
    • setEICockpitSelected

      public void setEICockpitSelected(boolean selected)
      Sets the EI Interface checkbox state directly. Called from CustomMekDialog when the EI implant option is toggled.
      Parameters:
      selected - true to check the checkbox, false to uncheck
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent