Class BAStructureTab

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ArmorAllocationListener, BABuildListener, BuildListener

public class BAStructureTab extends ITab implements BABuildListener, ArmorAllocationListener
See Also:
  • Constructor Details

    • BAStructureTab

      public BAStructureTab(EntitySource eSource)
  • Method Details

    • setUpPanels

      public void setUpPanels()
    • createLabel

      public JLabel createLabel(String text)
    • refresh

      public void refresh()
    • getTechManager

      public megamek.common.interfaces.ITechManager getTechManager()
    • setTechFaction

      public void setTechFaction(megamek.common.enums.Faction techFaction)
      Used by MekHQ to set the tech faction for custom refits.
    • addAllListeners

      public void addAllListeners()
    • removeAllListeners

      public void removeAllListeners()
    • addRefreshedListener

      public void addRefreshedListener(RefreshListener l)
    • setAsCustomization

      public void setAsCustomization()
    • refreshPreview

      public void refreshPreview()
    • refreshSummary

      public void refreshSummary()
      Specified by:
      refreshSummary in interface BuildListener
    • chassisChanged

      public void chassisChanged(String chassis)
      Specified by:
      chassisChanged in interface BuildListener
    • modelChanged

      public void modelChanged(String model)
      Specified by:
      modelChanged in interface BuildListener
    • yearChanged

      public void yearChanged(int year)
      Specified by:
      yearChanged in interface BuildListener
    • sourceChanged

      public void sourceChanged(String source)
      Specified by:
      sourceChanged in interface BuildListener
    • factionChanged

      public void factionChanged(megamek.common.enums.Faction faction)
      Specified by:
      factionChanged in interface BuildListener
    • techBaseChanged

      public void techBaseChanged(boolean clan, boolean mixed)
      Specified by:
      techBaseChanged in interface BuildListener
    • techLevelChanged

      public void techLevelChanged(megamek.common.SimpleTechLevel techLevel)
      Specified by:
      techLevelChanged in interface BuildListener
    • updateTechLevel

      public void updateTechLevel()
      Specified by:
      updateTechLevel in interface BuildListener
    • manualBVChanged

      public void manualBVChanged(int manualBV)
      Description copied from interface: BuildListener
      Notifies of a change of the manually entered BV. When manualBV is 0 or less, the unit should be set to not use a manual BV value and the manual BV set to -1.
      Specified by:
      manualBVChanged in interface BuildListener
      Parameters:
      manualBV - The entered manual BV; may be invalid (0 or less)
    • walkChanged

      public void walkChanged(int walkMP)
      Specified by:
      walkChanged in interface BuildListener
    • jumpChanged

      public void jumpChanged(int jumpMP, megamek.common.equipment.EquipmentType jumpJet)
      Specified by:
      jumpChanged in interface BuildListener
    • jumpTypeChanged

      public void jumpTypeChanged(megamek.common.equipment.EquipmentType jumpJet)
      Specified by:
      jumpTypeChanged in interface BuildListener
    • chassisTypeChanged

      public void chassisTypeChanged(int chassisType)
      Specified by:
      chassisTypeChanged in interface BABuildListener
    • weightClassChanged

      public void weightClassChanged(int weightClass)
      Specified by:
      weightClassChanged in interface BABuildListener
    • exoskeletonChanged

      public void exoskeletonChanged(boolean exoskeleton)
      Specified by:
      exoskeletonChanged in interface BABuildListener
    • harjelChanged

      public void harjelChanged(boolean harjel)
      Specified by:
      harjelChanged in interface BABuildListener
    • squadSizeChanged

      public void squadSizeChanged(int squadSize)
      Specified by:
      squadSizeChanged in interface BABuildListener
    • turretChanged

      public void turretChanged(int type, int size)
      Specified by:
      turretChanged in interface BABuildListener
    • enhancementChanged

      public void enhancementChanged(megamek.common.equipment.EquipmentType eq, boolean selected)
      Specified by:
      enhancementChanged in interface BABuildListener
    • armorFactorChanged

      public void armorFactorChanged(int points)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in the total number of armor points on the unit. This is used for unit types that assign armor by the point rather than by weight.
      Specified by:
      armorFactorChanged in interface ArmorAllocationListener
      Parameters:
      points - The total number of armor points on the unit.
    • armorTypeChanged

      public void armorTypeChanged(megamek.common.equipment.ArmorType armor)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in the armor type.
      Specified by:
      armorTypeChanged in interface ArmorAllocationListener
      Parameters:
      armor - The equipment instance of the armor to use.
    • maximizeArmor

      public void maximizeArmor()
      Description copied from interface: ArmorAllocationListener
      Signals that the armor should be set to the maximum value for the unit.
      Specified by:
      maximizeArmor in interface ArmorAllocationListener
    • useRemainingTonnageArmor

      public void useRemainingTonnageArmor()
      Description copied from interface: ArmorAllocationListener
      Signals that any remaining weight that has not been allocated should be used for armor, up to the armor limit for the unit.
      Specified by:
      useRemainingTonnageArmor in interface ArmorAllocationListener
    • mulIdChanged

      public void mulIdChanged(int mulId)
      Specified by:
      mulIdChanged in interface BuildListener
    • roleChanged

      public void roleChanged(megamek.common.units.UnitRole role)
      Specified by:
      roleChanged in interface BuildListener