Class AlertsImpl

java.lang.Object
ru.cg.webbpm.studio.platform.impl.wm.AlertsImpl
All Implemented Interfaces:
Alerts

@Component public class AlertsImpl extends Object implements Alerts
user: Ildar date: 22.03.15
  • Constructor Details

    • AlertsImpl

      public AlertsImpl()
  • Method Details

    • showConfirmDialog

      public Optional<javafx.scene.control.ButtonType> showConfirmDialog(String title, 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 interface Alerts
      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

      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 interface Alerts
      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

      public void showInfoDialog(String message)
      Description copied from interface: Alerts
      Show information dialog with background locking. It must be called only from UI thread.
      Specified by:
      showInfoDialog in interface Alerts
      Parameters:
      message - - the content text of the dialog
    • showInfoDialog

      public void showInfoDialog(String title, String message)
      Description copied from interface: Alerts
      Show information dialog with background locking. It must be called only from UI thread.
      Specified by:
      showInfoDialog in interface Alerts
      Parameters:
      title - - the title text of the dialog
      message - - the content text of the dialog
    • showInfoDialog

      public void showInfoDialog(String title, String header, String message)
      Description copied from interface: Alerts
      Show information dialog with background locking. It must be called only from UI thread.
      Specified by:
      showInfoDialog in interface Alerts
      Parameters:
      title - - the title text of the dialog
      header - - the header text of the dialog
      message - - 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 interface Alerts
    • showErrorDialog

      public void showErrorDialog(String message)
      Description copied from interface: Alerts
      Show error dialog with background locking. It could be called from any thread.
      Specified by:
      showErrorDialog in interface Alerts
      Parameters:
      message - - the content text of the dialog
    • showErrorDialog

      public void showErrorDialog(Throwable throwable)
      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 interface Alerts
      Parameters:
      throwable - - the throwable Throwable that invoke this dialog
    • showErrorDialog

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

      public void showErrorDialog(String title, String text, Throwable throwable)
      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 interface Alerts
      Parameters:
      title - dialog window title
      text - dialog window text
      throwable - throwable, can be null
    • showErrorDialog

      public void showErrorDialog(String message, Throwable throwable, javafx.stage.Window owner)
      Description copied from interface: Alerts
      Show error dialog with background locking. It could be called from any thread.
      Specified by:
      showErrorDialog in interface Alerts
      Parameters:
      message - - the content text of the dialog
      throwable - - the throwable Throwable that invoke this dialog
      owner - - the owner Window 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 interface Alerts
      Parameters:
      title - dialog window title
      message - dialog window main text
      expandedContentLabel - label for expanded content
      expandedContentText - 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 interface Alerts
      Parameters:
      message - - the content text of the dialog
      throwable - - the throwable Throwable that invoke this dialog
    • showInputDialog

      public Optional<String> showInputDialog(String title, String header, String message)
      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 interface Alerts
      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

      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 interface Alerts
      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

      public Optional<javafx.scene.control.ButtonType> 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 interface Alerts
      Returns:
      An Optional that contains the click result (#resultProperty()). Refer to the Dialog class documentation for more detail.