Class GlossaryDialog

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

public class GlossaryDialog extends JDialog
A dialog window for displaying both glossary and documentation entries in MekHQ.

This dialog presents the user with an about pane, a searchable glossary of terms, and a set of documentation links, all styled and organized for optimal navigation.

Clicking on glossary or documentation entries will trigger additional dialogs or logic.

Since:
0.50.07
See Also:
  • Field Details

    • GLOSSARY_COMMAND_STRING

      public static final String GLOSSARY_COMMAND_STRING
      The command string prefix used to identify glossary entry hyperlinks.

      Hyperlink URLs in the glossary pane use this prefix to indicate that an entry should be handled as a glossary term, e.g. "GLOSSARY:entryKey".

      Since:
      0.50.07
      See Also:
    • DOCUMENTATION_COMMAND_STRING

      public static final String DOCUMENTATION_COMMAND_STRING
      The command string prefix used to identify documentation entry hyperlinks.

      Hyperlink URLs in the documentation pane use this prefix to indicate that an entry should be handled as a documentation term, e.g. "DOCUMENTATION:entryKey".

      Since:
      0.50.07
      See Also:
  • Constructor Details

    • GlossaryDialog

      public GlossaryDialog(Frame parent)
      Creates and displays a new glossary and documentation dialog. Automatically sizes and positions the dialog based on UI scaling.
      Parameters:
      parent - the parent JFrame for this dialog
      Since:
      0.50.07
  • Method Details

    • handleGlossaryHyperlinkClick

      public static void handleGlossaryHyperlinkClick(JDialog parent, HyperlinkEvent hyperlinkEvent)
      Handles hyperlink events from glossary and documentation panes.

      Triggers display of new dialogs for the glossary or documentation.

      Parameters:
      hyperlinkEvent - the event generated by the user's click
      Since:
      0.50.07