Interface AlertHandle

All Superinterfaces:
DialogHandle, UiContainer

public interface AlertHandle extends DialogHandle
A JOptionPane-built modal alert. Carries an icon type for info, warning, error or question, and exposes OK / Cancel / Yes / No clicks.

Reach this handle via Session.alert().

  • Method Details

    • getMessageText

      @NotNull String getMessageText()
      The alert's message text.
    • getIconType

      @NotNull AlertHandle.IconType getIconType()
      The configured icon type.
    • clickOk

      void clickOk()
      Click a button labeled or named "OK".
    • clickCancel

      void clickCancel()
      Click a button labeled or named "Cancel".
    • clickYes

      void clickYes()
      Click a button labeled or named "Yes".
    • clickNo

      void clickNo()
      Click a button labeled or named "No".