Module de.seggebaeing.sqlanalyzer
Class HelpWindow
java.lang.Object
de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
de.seggebaeing.sqlanalyzer.presentation.uielements.window.HelpWindow
- All Implemented Interfaces:
javafx.fxml.Initializable
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
-
Field Summary
Fields inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
root
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
Returns the fixed window title for the help window.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.void
Loads the given HTML resource into the embeddedWebView
.Methods inherited from class de.seggebaeing.sqlanalyzer.presentation.uielements.window.TitledInitializableWindow
closeWindow, enableHelp, getRoot, getStage
-
Constructor Details
-
HelpWindow
public HelpWindow()
-
-
Method Details
-
initialize
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 benull
)resources
- localization bundle (may benull
)- Implementation Note:
- Invoke on the JavaFX Application Thread.
-
loadHtml
Loads the given HTML resource into the embeddedWebView
.- Parameters:
htmlUrl
- the URL string to load (e.g.,jar:file:...
orhttp(s)://
)- Implementation Note:
- Must be called on the JavaFX Application Thread.
-
getTitle
Returns the fixed window title for the help window.- Specified by:
getTitle
in classTitledInitializableWindow
- Returns:
- the string
"Help"
-