Interface AlertListener

    • Method Detail

      • messageTypeChanged

        default void messageTypeChanged​(Alert alert,
                                        MessageType previousMessageType)
        Called when an alert's message type has changed.
        Parameters:
        alert - The alert that has changed.
        previousMessageType - The previous message type for the alert.
      • messageChanged

        default void messageChanged​(Alert alert,
                                    java.lang.String previousMessage)
        Called when an alert's message has changed.
        Parameters:
        alert - The alert that has changed.
        previousMessage - The previous message for this alert.
      • bodyChanged

        default void bodyChanged​(Alert alert,
                                 Component previousBody)
        Called when an alert's body has changed.
        Parameters:
        alert - The alert that has changed.
        previousBody - The previous body for this alert.
      • optionInserted

        default void optionInserted​(Alert alert,
                                    int index)
        Called when an option has been inserted into an alert's option sequence.
        Parameters:
        alert - The alert that has changed.
        index - The index where the new option was inserted.
      • optionsRemoved

        default void optionsRemoved​(Alert alert,
                                    int index,
                                    Sequence<?> removed)
        Called when options have been removed from an alert's option sequence.
        Parameters:
        alert - The alert that has changed.
        index - The starting index where the options were removed.
        removed - The actual sequence of the options that were removed.
      • selectedOptionChanged

        default void selectedOptionChanged​(Alert alert,
                                           int previousSelectedOption)
        Called when an alert's selected option has changed.
        Parameters:
        alert - The alert that has changed.
        previousSelectedOption - The index of the previously selected option.