Class AlertsImpl
java.lang.Object
ru.cg.webbpm.studio.platform.impl.wm.AlertsImpl
- All Implemented Interfaces:
Alerts
user: Ildar
date: 22.03.15
-
Constructor Summary
Constructors -
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.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.platform.api.wm.Alerts
showErrorDialog
-
Constructor Details
-
AlertsImpl
public AlertsImpl()
-
-
Method Details
-
showConfirmDialog
Description copied from interface:Alerts
Show confirmation dialog with background locking. It must be called only from UI thread.- Specified by:
showConfirmDialog
in interfaceAlerts
- 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
public Optional<javafx.scene.control.ButtonType> showConfirmDialog(String title, String header, String message) Description copied from interface:Alerts
Show confirmation dialog with background locking. It must be called only from UI thread.- Specified by:
showConfirmDialog
in interfaceAlerts
- 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
Description copied from interface:Alerts
Show information dialog with background locking. It must be called only from UI thread.- Specified by:
showInfoDialog
in interfaceAlerts
- Parameters:
message
- - the content text of the dialog
-
showInfoDialog
Description copied from interface:Alerts
Show information dialog with background locking. It must be called only from UI thread.- Specified by:
showInfoDialog
in interfaceAlerts
- Parameters:
title
- - the title text of the dialogmessage
- - the content text of the dialog
-
showInfoDialog
Description copied from interface:Alerts
Show information dialog with background locking. It must be called only from UI thread.- Specified by:
showInfoDialog
in interfaceAlerts
- Parameters:
title
- - the title text of the dialogheader
- - the header text of the dialogmessage
- - the content text of the dialog
-
showErrorDialog
public void showErrorDialog()Description copied from interface:Alerts
Show error dialog with unknown message and background locking. It could be called from any thread.- Specified by:
showErrorDialog
in interfaceAlerts
-
showErrorDialog
Description copied from interface:Alerts
Show error dialog with background locking. It could be called from any thread.- Specified by:
showErrorDialog
in interfaceAlerts
- Parameters:
message
- - the content text of the dialog
-
showErrorDialog
Description copied from interface:Alerts
Show error dialog with unknown message and background locking. It could be called from any thread.- Specified by:
showErrorDialog
in interfaceAlerts
- Parameters:
throwable
- - the throwableThrowable
that invoke this dialog
-
showErrorDialog
Description copied from interface:Alerts
Show error dialog with background locking. It could be called from any thread.- Specified by:
showErrorDialog
in interfaceAlerts
- Parameters:
message
- - the content text of the dialogthrowable
- - the throwableThrowable
that invoke this dialog
-
showErrorDialog
Description copied from interface:Alerts
Show error dialog with specified title, text, and background locking. This blocks until the user presses the OK button- Specified by:
showErrorDialog
in interfaceAlerts
- Parameters:
title
- dialog window titletext
- dialog window textthrowable
- throwable, can be null
-
showErrorDialog
Description copied from interface:Alerts
Show error dialog with background locking. It could be called from any thread.- Specified by:
showErrorDialog
in interfaceAlerts
- Parameters:
message
- - the content text of the dialogthrowable
- - the throwableThrowable
that invoke this dialogowner
- - the ownerWindow
for this dialog
-
showErrorDialog
public void showErrorDialog(String title, String message, String expandedContentLabel, String expandedContentText) Description copied from interface:Alerts
Show error with specified title, message, label for expanded content, expanded content text and background locking- Specified by:
showErrorDialog
in interfaceAlerts
- Parameters:
title
- dialog window titlemessage
- dialog window main textexpandedContentLabel
- label for expanded contentexpandedContentText
- expanded content text
-
showConfirmDialogThrowable
public Optional<javafx.scene.control.ButtonType> showConfirmDialogThrowable(String message, Throwable throwable) Description copied from interface:Alerts
Show confirm dialog with error stack trace- Specified by:
showConfirmDialogThrowable
in interfaceAlerts
- Parameters:
message
- - the content text of the dialogthrowable
- - the throwableThrowable
that invoke this dialog
-
showInputDialog
Description copied from interface:Alerts
Show dialog with input field and background locking. It must be called only from UI thread.- Specified by:
showInputDialog
in interfaceAlerts
- 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
public Optional<String> showInputDialog(String title, String header, String message, String defaultValue) Description copied from interface:Alerts
Show dialog with input field and background locking. It must be called only from UI thread.- Specified by:
showInputDialog
in interfaceAlerts
- 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
Description copied from interface:Alerts
Show save confirmation dialog with background locking. It must be called only from UI thread.- Specified by:
showSaveConfirmationDialog
in interfaceAlerts
- Returns:
- An
Optional
that contains the click result (#resultProperty()). Refer to theDialog
class documentation for more detail.
-