Package gui.error_window
Class ErrorWindow
java.lang.Object
javafx.scene.control.Dialog<Object>
gui.error_window.ErrorWindow
- All Implemented Interfaces:
javafx.event.EventTarget
Display an error message to the user and prevent further use of the GUI until
the message is dismissed.
-
Property Summary
Properties inherited from class javafx.scene.control.Dialog
contentText, dialogPane, graphic, headerText, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, resizable, resultConverter, result, showing, title, width, x, y
-
Constructor Summary
ConstructorDescriptionErrorWindow
(javafx.scene.Node openFor, String title, String explanation, String shortMessage, String detailedMessage) ErrorWindow
(javafx.scene.Node openFor, String title, String explanation, Throwable error) ErrorWindow
(javafx.stage.Window owner, String title, String explanation, String shortMessage, String detailedMessage) ErrorWindow
(javafx.stage.Window owner, String title, String explanation, Throwable error) -
Method Summary
Methods inherited from class javafx.scene.control.Dialog
buildEventDispatchChain, close, contentTextProperty, dialogPaneProperty, getContentText, getDialogPane, getGraphic, getHeaderText, getHeight, getModality, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOwner, getResult, getResultConverter, getTitle, getWidth, getX, getY, graphicProperty, headerTextProperty, heightProperty, hide, initModality, initOwner, initStyle, isResizable, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, resizableProperty, resultConverterProperty, resultProperty, setContentText, setDialogPane, setGraphic, setHeaderText, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setResizable, setResult, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yProperty
-
Constructor Details
-
ErrorWindow
public ErrorWindow(javafx.stage.Window owner, String title, String explanation, String shortMessage, String detailedMessage) - Parameters:
owner
- The main window to which the error window belongs.title
- The title text for the error window. (can be null)explanation
- Human-readable text explaining what went wrong. (can be null)shortMessage
- Short error message text. This should fit on a single line. (can be null)detailedMessage
- Long error message text. (can be null)
-
ErrorWindow
public ErrorWindow(javafx.scene.Node openFor, String title, String explanation, String shortMessage, String detailedMessage) - Parameters:
openFor
- The node whose containing window to which this error window will belong.
-
ErrorWindow
- Parameters:
error
- The error to report. `error.getMessage()` will be the short message text and `error.printStackTrace()` will be the detailed message text.
-
ErrorWindow
-