Interface Alerts
- All Known Implementing Classes:
AlertsImpl
public interface Alerts
-
Method Summary
Modifier and TypeMethodDescriptionOptional<javafx.scene.control.ButtonType>
showConfirmDialog
(String title, String message) Show confirmation dialog with background locking.Optional<javafx.scene.control.ButtonType>
showConfirmDialog
(String title, String header, String message) Show confirmation dialog with background locking.Optional<javafx.scene.control.ButtonType>
showConfirmDialogThrowable
(String message, Throwable throwable) Show confirm dialog with error stack tracevoid
Show error dialog with unknown message and background locking.void
showErrorDialog
(String message) Show error dialog with background locking.default void
showErrorDialog
(String title, String text) 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 lockingvoid
showErrorDialog
(String title, String text, Throwable throwable) Show error dialog with specified title, text, and background locking.void
showErrorDialog
(String message, Throwable throwable) Show error dialog with background locking.void
showErrorDialog
(String message, Throwable throwable, javafx.stage.Window owner) Show error dialog with background locking.void
showErrorDialog
(Throwable throwable) Show error dialog with unknown message and background locking.void
showInfoDialog
(String message) Show information dialog with background locking.void
showInfoDialog
(String title, String message) Show information dialog with background locking.void
showInfoDialog
(String title, String header, String message) Show information dialog with background locking.showInputDialog
(String title, String header, String message) Show dialog with input field and background locking.showInputDialog
(String title, String header, String message, String defaultValue) Show dialog with input field and background locking.Optional<javafx.scene.control.ButtonType>
Show save confirmation dialog with background locking.
-
Method Details
-
showConfirmDialog
Show confirmation dialog with background locking. It must be called only from UI thread.- Parameters:
title
- - the title text of the dialogmessage
- - the content text of the dialog- Returns:
- An
Optional
that contains the click result (#resultProperty()). Refer to theDialog
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 dialogheader
- - the header text of the dialogmessage
- - the content text of the dialog- Returns:
- An
Optional
that contains the click result (#resultProperty()). Refer to theDialog
class documentation for more detail.
-
showInfoDialog
Show information dialog with background locking. It must be called only from UI thread.- Parameters:
message
- - the content text of the dialog
-
showInfoDialog
Show information dialog with background locking. It must be called only from UI thread.- Parameters:
title
- - the title text of the dialogmessage
- - the content text of the dialog
-
showInfoDialog
Show information dialog with background locking. It must be called only from UI thread.- Parameters:
title
- - the title text of the dialogheader
- - the header text of the dialogmessage
- - 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
Show error dialog with background locking. It could be called from any thread.- Parameters:
message
- - the content text of the dialog
-
showErrorDialog
Show error dialog with unknown message and background locking. It could be called from any thread.- Parameters:
throwable
- - the throwableThrowable
that invoke this dialog
-
showErrorDialog
Show error dialog with background locking. It could be called from any thread.- Parameters:
message
- - the content text of the dialogthrowable
- - the throwableThrowable
that invoke this dialog
-
showErrorDialog
Show error dialog with specified title, text, and background locking. This blocks until the user presses the OK button- Parameters:
title
- dialog window titletext
- dialog window textthrowable
- throwable, can be null
-
showErrorDialog
-
showErrorDialog
Show error dialog with background locking. It could be called from any thread.- Parameters:
message
- - the content text of the dialogthrowable
- - the throwableThrowable
that invoke this dialogowner
- - the ownerWindow
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 titlemessage
- dialog window main textexpandedContentLabel
- label for expanded contentexpandedContentText
- 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 dialogthrowable
- - the throwableThrowable
that invoke this dialog
-
showInputDialog
Show dialog with input field and background locking. It must be called only from UI thread.- Parameters:
title
- - the title text of the dialogheader
- - the header text of the dialogmessage
- - the content text of the dialog- Returns:
- An
Optional
that contains the input result (#resultProperty()). Refer to theDialog
class documentation for more detail.
-
showInputDialog
Show dialog with input field and background locking. It must be called only from UI thread.- Parameters:
title
- - the title text of the dialogheader
- - the header text of the dialogmessage
- - the content text of the dialogdefaultValue
- - the default value entered into input field- Returns:
- An
Optional
that contains the input result (#resultProperty()). Refer to theDialog
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 theDialog
class documentation for more detail.
-