Class CommandGenerationCheckBox

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class CommandGenerationCheckBox extends JCheckBox
A specialized JCheckBox for the Command Generation dialog.

Text and tooltip come from the mekhq.resources.CommandGenerationDialog bundle, indexed by "lbl" + name + ".text" and "lbl" + name + ".tooltip". The wrap-size and font-scale helpers are reused from the Campaign Options package — only the bundle is package-local.

See Also:
  • Constructor Details

    • CommandGenerationCheckBox

      public CommandGenerationCheckBox(String name)
      Constructs a checkbox whose text and tooltip are read from the Command Generation bundle.
      Parameters:
      name - the bundle-key suffix; final keys are lbl<name>.text / lbl<name>.tooltip
    • CommandGenerationCheckBox

      public CommandGenerationCheckBox(String name, @Nullable Integer customWrapSize)
      Same as CommandGenerationCheckBox(String) but lets the caller specify the tooltip's word-wrap column count.
      Parameters:
      name - the bundle-key suffix
      customWrapSize - maximum tooltip line length, or null for the default