Interface IMessageBoxReply

  • 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 interface IMessageBoxReply
    The message box reply callback.

    The callback is not called when an application session is closed.

    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static intCLOSE
      The reply for the Close icon, value = -1.
      static intSESSION_CLOSED
      The reply for the application or client session closed, value = -2.
    • Field Detail

      • SESSION_CLOSED

        static final int SESSION_CLOSED
        The reply for the application or client session closed, value = -2. The close notification only applies to where the message box was displayed, i.e. for application session, no event will be notified when the application session is closed, but for client session, when the client session is closed.
        See Also:
        Constant Field Values
    • Method Detail

      • onMessageBoxReply

        void onMessageBoxReply​(int index)
        Callback when the user has chosen an a button or pressed the Close icon (if this option is enabled).
        Parameters:
        index - The index of the button pressed, -1 or CLOSE for Close icon (if this options is enabled), -2 or SESSION_CLOSED if the client session has been closed and the message box was directed to a client session.