java.lang.Object
de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
de.seggebaeing.sqlanalyzer.presentation.uielements.window.HelpWindow
All Implemented Interfaces:
javafx.fxml.Initializable

public class HelpWindow extends TitledInitializableWindow
JavaFX window for displaying HTML help content in a WebView with a loading spinner. The spinner hides on successful load; failures are logged. Intended for FXML use; title is fixed to “Help”.
Since:
1.0
Author:
Felix Seggebäing
  • Constructor Details

    • HelpWindow

      public HelpWindow()
  • Method Details

    • initialize

      public void initialize(URL location, ResourceBundle resources)
      Wires a listener to the WebView’s load worker to toggle the loading spinner: hides the spinner and shows the WebView on success; hides the spinner and logs a warning on failure or cancellation.
      Parameters:
      location - FXML location (may be null)
      resources - localization bundle (may be null)
      Implementation Note:
      Invoke on the JavaFX Application Thread.
    • loadHtml

      public void loadHtml(String htmlUrl)
      Loads the given HTML resource into the embedded WebView.
      Parameters:
      htmlUrl - the URL string to load (e.g., jar:file:... or http(s)://)
      Implementation Note:
      Must be called on the JavaFX Application Thread.
    • getTitle

      public String getTitle()
      Returns the fixed window title for the help window.
      Specified by:
      getTitle in class TitledInitializableWindow
      Returns:
      the string "Help"