Class BattlefieldSupportAssetConfigDialog

All Implemented Interfaces:
WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class BattlefieldSupportAssetConfigDialog extends AbstractButtonDialog
A small configuration dialog for a Battlefield Support Asset's crew. Unlike a full unit, an asset has no gunnery/piloting numbers and no equipment; its only crew choices are a name and a grade (Regular or Veteran). This replaces CustomMekDialog for assets, whose many tabs (equipment, weapons, quirks) do not apply.
See Also:
  • Constructor Details

    • BattlefieldSupportAssetConfigDialog

      public BattlefieldSupportAssetConfigDialog(JFrame frame, BattlefieldSupportAsset asset, boolean editable)
      Parameters:
      frame - the parent frame
      asset - the asset whose crew is being configured
      editable - whether the local player may edit this asset (false shows the values read-only)
  • Method Details

    • createCenterPane

      protected Container createCenterPane()
      Description copied from class: AbstractDialog
      This is used to create the dialog's center pane
      Specified by:
      createCenterPane in class AbstractDialog
      Returns:
      the center pane of the dialog
    • applyChoices

      public void applyChoices()
      Copies the chosen name and grade onto the asset. Call only after the dialog was confirmed and when the asset is editable.