Interface Alerts
- All Known Implementing Classes:
- AlertsImpl
public interface Alerts
- 
Method SummaryModifier 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 tracevoidShow error dialog with unknown message and background locking.voidshowErrorDialog(String message) Show error dialog with background locking.default voidshowErrorDialog(String title, String text) voidshowErrorDialog(String title, String message, String expandedContentLabel, String expandedContentText) Show error with specified title, message, label for expanded content, expanded content text and background lockingvoidshowErrorDialog(String title, String text, Throwable throwable) Show error dialog with specified title, text, and background locking.voidshowErrorDialog(String message, Throwable throwable) Show error dialog with background locking.voidshowErrorDialog(String message, Throwable throwable, javafx.stage.Window owner) Show error dialog with background locking.voidshowErrorDialog(Throwable throwable) Show error dialog with unknown message and background locking.voidshowInfoDialog(String message) Show information dialog with background locking.voidshowInfoDialog(String title, String message) Show information dialog with background locking.voidshowInfoDialog(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- 
showConfirmDialogShow 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 Optionalthat contains the click result (#resultProperty()). Refer to theDialogclass documentation for more detail.
 
- 
showConfirmDialogOptional<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 Optionalthat contains the click result (#resultProperty()). Refer to theDialogclass documentation for more detail.
 
- 
showInfoDialogShow information dialog with background locking. It must be called only from UI thread.- Parameters:
- message- - the content text of the dialog
 
- 
showInfoDialogShow 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
 
- 
showInfoDialogShow 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
 
- 
showErrorDialogvoid showErrorDialog()Show error dialog with unknown message and background locking. It could be called from any thread.
- 
showErrorDialogShow error dialog with background locking. It could be called from any thread.- Parameters:
- message- - the content text of the dialog
 
- 
showErrorDialogShow error dialog with unknown message and background locking. It could be called from any thread.- Parameters:
- throwable- - the throwable- Throwablethat invoke this dialog
 
- 
showErrorDialogShow error dialog with background locking. It could be called from any thread.- Parameters:
- message- - the content text of the dialog
- throwable- - the throwable- Throwablethat invoke this dialog
 
- 
showErrorDialogShow 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
- 
showErrorDialogShow error dialog with background locking. It could be called from any thread.- Parameters:
- message- - the content text of the dialog
- throwable- - the throwable- Throwablethat invoke this dialog
- owner- - the owner- Windowfor this dialog
 
- 
showErrorDialogvoid 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
 
- 
showConfirmDialogThrowableOptional<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- Throwablethat invoke this dialog
 
- 
showInputDialogShow 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 Optionalthat contains the input result (#resultProperty()). Refer to theDialogclass documentation for more detail.
 
- 
showInputDialogShow 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 Optionalthat contains the input result (#resultProperty()). Refer to theDialogclass documentation for more detail.
 
- 
showSaveConfirmationDialogOptional<javafx.scene.control.ButtonType> showSaveConfirmationDialog()Show save confirmation dialog with background locking. It must be called only from UI thread.- Returns:
- An Optionalthat contains the click result (#resultProperty()). Refer to theDialogclass documentation for more detail.
 
 
-