Interface Alerts

All Known Implementing Classes:
AlertsImpl

public interface Alerts
  • Method Details

    • showConfirmDialog

      Optional<javafx.scene.control.ButtonType> showConfirmDialog(String title, String message)
      Show confirmation dialog with background locking. It must be called only from UI thread.
      Parameters:
      title - - the title text of the dialog
      message - - the content text of the dialog
      Returns:
      An Optional that contains the click result (#resultProperty()). Refer to the Dialog class documentation for more detail.
    • showConfirmDialog

      Optional<javafx.scene.control.ButtonType> showConfirmDialog(String title, String header, String message)
      Show confirmation dialog with background locking. It must be called only from UI thread.
      Parameters:
      title - - the title text of the dialog
      header - - the header text of the dialog
      message - - the content text of the dialog
      Returns:
      An Optional that contains the click result (#resultProperty()). Refer to the Dialog class documentation for more detail.
    • showInfoDialog

      void showInfoDialog(String message)
      Show information dialog with background locking. It must be called only from UI thread.
      Parameters:
      message - - the content text of the dialog
    • showInfoDialog

      void showInfoDialog(String title, String message)
      Show information dialog with background locking. It must be called only from UI thread.
      Parameters:
      title - - the title text of the dialog
      message - - the content text of the dialog
    • showInfoDialog

      void showInfoDialog(String title, String header, String message)
      Show information dialog with background locking. It must be called only from UI thread.
      Parameters:
      title - - the title text of the dialog
      header - - the header text of the dialog
      message - - the content text of the dialog
    • showErrorDialog

      void showErrorDialog()
      Show error dialog with unknown message and background locking. It could be called from any thread.
    • showErrorDialog

      void showErrorDialog(String message)
      Show error dialog with background locking. It could be called from any thread.
      Parameters:
      message - - the content text of the dialog
    • showErrorDialog

      void showErrorDialog(Throwable throwable)
      Show error dialog with unknown message and background locking. It could be called from any thread.
      Parameters:
      throwable - - the throwable Throwable that invoke this dialog
    • showErrorDialog

      void showErrorDialog(String message, Throwable throwable)
      Show error dialog with background locking. It could be called from any thread.
      Parameters:
      message - - the content text of the dialog
      throwable - - the throwable Throwable that invoke this dialog
    • showErrorDialog

      void showErrorDialog(String title, String text, Throwable throwable)
      Show error dialog with specified title, text, and background locking. This blocks until the user presses the OK button
      Parameters:
      title - dialog window title
      text - dialog window text
      throwable - throwable, can be null
    • showErrorDialog

      default void showErrorDialog(String title, String text)
    • showErrorDialog

      void showErrorDialog(String message, Throwable throwable, javafx.stage.Window owner)
      Show error dialog with background locking. It could be called from any thread.
      Parameters:
      message - - the content text of the dialog
      throwable - - the throwable Throwable that invoke this dialog
      owner - - the owner Window for this dialog
    • showErrorDialog

      void showErrorDialog(String title, String message, String expandedContentLabel, String expandedContentText)
      Show error with specified title, message, label for expanded content, expanded content text and background locking
      Parameters:
      title - dialog window title
      message - dialog window main text
      expandedContentLabel - label for expanded content
      expandedContentText - expanded content text
    • showConfirmDialogThrowable

      Optional<javafx.scene.control.ButtonType> showConfirmDialogThrowable(String message, Throwable throwable)
      Show confirm dialog with error stack trace
      Parameters:
      message - - the content text of the dialog
      throwable - - the throwable Throwable that invoke this dialog
    • showInputDialog

      Optional<String> showInputDialog(String title, String header, String message)
      Show dialog with input field and background locking. It must be called only from UI thread.
      Parameters:
      title - - the title text of the dialog
      header - - the header text of the dialog
      message - - the content text of the dialog
      Returns:
      An Optional that contains the input result (#resultProperty()). Refer to the Dialog class documentation for more detail.
    • showInputDialog

      Optional<String> showInputDialog(String title, String header, String message, String defaultValue)
      Show dialog with input field and background locking. It must be called only from UI thread.
      Parameters:
      title - - the title text of the dialog
      header - - the header text of the dialog
      message - - the content text of the dialog
      defaultValue - - the default value entered into input field
      Returns:
      An Optional that contains the input result (#resultProperty()). Refer to the Dialog class documentation for more detail.
    • showSaveConfirmationDialog

      Optional<javafx.scene.control.ButtonType> showSaveConfirmationDialog()
      Show save confirmation dialog with background locking. It must be called only from UI thread.
      Returns:
      An Optional that contains the click result (#resultProperty()). Refer to the Dialog class documentation for more detail.