Interface Dialogs.Closeable<T>

Type Parameters:
T - return type of fluent API methods
All Known Subinterfaces:
Dialogs.MessageDialogBuilder
All Known Implementing Classes:
DialogsImpl.MessageDialogBuilderImpl
Enclosing interface:
Dialogs

public static interface Dialogs.Closeable<T>
Marker interface for Dialog Builders with close setting.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    withCloseOnEsc(boolean closeOnEsc)
    Sets whether this dialog can be closed by hitting the esc-key or not.
    withCloseOnOutsideClick(boolean closeOnOutsideClick)
    Sets whether this dialog can be closed by clicking outside.
  • Method Details

    • withCloseOnOutsideClick

      T withCloseOnOutsideClick(boolean closeOnOutsideClick)
      Sets whether this dialog can be closed by clicking outside.

      By default, the dialog is closable with an outside click.

      Parameters:
      closeOnOutsideClick - true to enable closing this dialog with an outside click, false to disable it
      Returns:
      builder
    • isCloseOnOutsideClick

      boolean isCloseOnOutsideClick()
      Returns:
      true if this dialog can be closed by an outside click, false otherwise
    • withCloseOnEsc

      T withCloseOnEsc(boolean closeOnEsc)
      Sets whether this dialog can be closed by hitting the esc-key or not.

      By default, the dialog is closable with esc.

      Parameters:
      closeOnEsc - true to enable closing this dialog with the esc-key, false to disable it
      Returns:
      builder
    • isCloseOnEsc

      boolean isCloseOnEsc()
      Returns:
      true if this dialog can be closed with the esc-key, false otherwise