Class ErrorWindow

java.lang.Object
javafx.scene.control.Dialog<Object>
gui.error_window.ErrorWindow
All Implemented Interfaces:
javafx.event.EventTarget

public class ErrorWindow extends javafx.scene.control.Dialog<Object>
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

    Constructors
    Constructor
    Description
    ErrorWindow(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public ErrorWindow(javafx.stage.Window owner, String title, String explanation, Throwable error)
      Parameters:
      error - The error to report. `error.getMessage()` will be the short message text and `error.printStackTrace()` will be the detailed message text.
    • ErrorWindow

      public ErrorWindow(javafx.scene.Node openFor, String title, String explanation, Throwable error)