Class SVMainUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, EntitySource, FileNameManager, MenuBarOwner, AppCloser, RefreshListener

public class SVMainUI extends MegaMekLabMainUI
Main window for support vehicle construction
See Also:
  • Constructor Details

    • SVMainUI

      public SVMainUI()
  • Method Details

    • reloadTabs

      public void reloadTabs()
      Specified by:
      reloadTabs in class MegaMekLabMainUI
    • refreshAll

      public void refreshAll()
      Description copied from interface: MenuBarOwner
      This method is called when this menubar owner should refresh all displayed content (all tabs in the unit main UIs). By default, this method does nothing.
      Specified by:
      refreshAll in interface MenuBarOwner
      Specified by:
      refreshAll in interface RefreshListener
      Specified by:
      refreshAll in class MegaMekLabMainUI
    • refreshArmor

      public void refreshArmor()
      Specified by:
      refreshArmor in interface RefreshListener
      Specified by:
      refreshArmor in class MegaMekLabMainUI
    • refreshBuild

      public void refreshBuild()
      Specified by:
      refreshBuild in interface RefreshListener
      Specified by:
      refreshBuild in class MegaMekLabMainUI
    • refreshEquipment

      public void refreshEquipment()
      Specified by:
      refreshEquipment in interface RefreshListener
      Specified by:
      refreshEquipment in class MegaMekLabMainUI
    • refreshTransport

      public void refreshTransport()
    • refreshStatus

      public void refreshStatus()
      Specified by:
      refreshStatus in interface RefreshListener
      Specified by:
      refreshStatus in class MegaMekLabMainUI
    • refreshStructure

      public void refreshStructure()
      Specified by:
      refreshStructure in interface RefreshListener
      Specified by:
      refreshStructure in class MegaMekLabMainUI
    • refreshWeapons

      public void refreshWeapons()
      Specified by:
      refreshWeapons in interface RefreshListener
      Specified by:
      refreshWeapons in class MegaMekLabMainUI
    • createNewUnit

      public void createNewUnit(long entityType, boolean isPrimitive, boolean isIndustrial, megamek.common.Entity oldEntity)
      Description copied from interface: EntitySource
      Replace the current Entity with a new one of the indicated type
      Parameters:
      entityType - An ETYPE flag indicating the type of Entity to create. Rather than the entire bitmask, only the flag that distinguishes the class from its parent is used.
      isPrimitive - Whether the new Entity should be primitive; not used by all unit types
      isIndustrial - Whether the new Entity should be an industrial mek; not used by other unit types
      oldEntity - If not null, the basic information (name, year, source, tech level, manual bv) will be copied from the old unit.
    • refreshPreview

      public void refreshPreview()
      Specified by:
      refreshPreview in interface RefreshListener
      Specified by:
      refreshPreview in class MegaMekLabMainUI
    • refreshSummary

      public void refreshSummary()
    • refreshEquipmentTable

      public void refreshEquipmentTable()
    • getTechManager

      public megamek.common.ITechManager getTechManager()
      Returns:
      the current TechManager, which provides the means to determine legality of any piece of tech.
    • getFloatingEquipmentDatabase

      public JDialog getFloatingEquipmentDatabase()
      Specified by:
      getFloatingEquipmentDatabase in class MegaMekLabMainUI
    • getUnallocatedMounted

      public List<megamek.common.Mounted<?>> getUnallocatedMounted()
      Description copied from class: MegaMekLabMainUI
      Retrieves a list of mounted components that are currently not assigned to a location. Such equipment would be deleted on save and reload.
      Specified by:
      getUnallocatedMounted in class MegaMekLabMainUI
      Returns:
      a List containing unallocated Mounted objects.