Interface MessageDialog.OnResponse

Enclosing class:
MessageDialog
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface MessageDialog.OnResponse
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onResponse(Str response)
    This signal is emitted when the dialog is closed.
  • Method Details

    • onResponse

      void onResponse(@Nonnull Str response)
      This signal is emitted when the dialog is closed.

      @response will be set to the response ID of the button that had been
      activated.

      if the dialog was closed by pressing <kbd>Escape</kbd> or with a system
      action, @response will be set to the value of
      [property@MessageDialog:close-response].
      Parameters:
      response - the response ID