Class AlertListener.Adapter

  • All Implemented Interfaces:
    AlertListener
    Enclosing interface:
    AlertListener

    @Deprecated
    public static class AlertListener.Adapter
    extends java.lang.Object
    implements AlertListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Alert listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • messageTypeChanged

        public void messageTypeChanged​(Alert alert,
                                       MessageType previousMessageType)
        Deprecated.
        Description copied from interface: AlertListener
        Called when an alert's message type has changed.
        Specified by:
        messageTypeChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousMessageType - The previous message type for the alert.
      • messageChanged

        public void messageChanged​(Alert alert,
                                   java.lang.String previousMessage)
        Deprecated.
        Description copied from interface: AlertListener
        Called when an alert's message has changed.
        Specified by:
        messageChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousMessage - The previous message for this alert.
      • bodyChanged

        public void bodyChanged​(Alert alert,
                                Component previousBody)
        Deprecated.
        Description copied from interface: AlertListener
        Called when an alert's body has changed.
        Specified by:
        bodyChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousBody - The previous body for this alert.
      • optionInserted

        public void optionInserted​(Alert alert,
                                   int index)
        Deprecated.
        Description copied from interface: AlertListener
        Called when an option has been inserted into an alert's option sequence.
        Specified by:
        optionInserted in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        index - The index where the new option was inserted.
      • optionsRemoved

        public void optionsRemoved​(Alert alert,
                                   int index,
                                   Sequence<?> removed)
        Deprecated.
        Description copied from interface: AlertListener
        Called when options have been removed from an alert's option sequence.
        Specified by:
        optionsRemoved in interface AlertListener
        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

        public void selectedOptionChanged​(Alert alert,
                                          int previousSelectedOption)
        Deprecated.
        Description copied from interface: AlertListener
        Called when an alert's selected option has changed.
        Specified by:
        selectedOptionChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousSelectedOption - The index of the previously selected option.