Class PromptListener.Adapter

  • All Implemented Interfaces:
    PromptListener
    Enclosing interface:
    PromptListener

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

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • messageTypeChanged

        public void messageTypeChanged​(Prompt prompt,
                                       MessageType previousMessageType)
        Deprecated.
        Description copied from interface: PromptListener
        Called when a prompt's message type has changed.
        Specified by:
        messageTypeChanged in interface PromptListener
        Parameters:
        prompt - The prompt object that has been changed.
        previousMessageType - The message type before the change.
      • messageChanged

        public void messageChanged​(Prompt prompt,
                                   java.lang.String previousMessage)
        Deprecated.
        Description copied from interface: PromptListener
        Called when a prompt's message has changed.
        Specified by:
        messageChanged in interface PromptListener
        Parameters:
        prompt - The prompt whose message has changed.
        previousMessage - What the message used to be.
      • bodyChanged

        public void bodyChanged​(Prompt prompt,
                                Component previousBody)
        Deprecated.
        Description copied from interface: PromptListener
        Called when a prompt's body has changed.
        Specified by:
        bodyChanged in interface PromptListener
        Parameters:
        prompt - The prompt that has changed.
        previousBody - What the body of this prompt used to be.
      • optionInserted

        public void optionInserted​(Prompt prompt,
                                   int index)
        Deprecated.
        Description copied from interface: PromptListener
        Called when an option has been inserted into a prompt's option sequence.
        Specified by:
        optionInserted in interface PromptListener
        Parameters:
        prompt - The prompt whose options have changed.
        index - The location where the new option was inserted.
      • optionsRemoved

        public void optionsRemoved​(Prompt prompt,
                                   int index,
                                   Sequence<?> removed)
        Deprecated.
        Description copied from interface: PromptListener
        Called when options have been removed from a prompt's option sequence.
        Specified by:
        optionsRemoved in interface PromptListener
        Parameters:
        prompt - The prompt whose options have changed.
        index - The starting location of the removed options.
        removed - The actual sequence of options removed.
      • selectedOptionChanged

        public void selectedOptionChanged​(Prompt prompt,
                                          int previousSelectedOption)
        Deprecated.
        Description copied from interface: PromptListener
        Called when a prompt's selected option has changed.
        Specified by:
        selectedOptionChanged in interface PromptListener
        Parameters:
        prompt - The prompt that changed.
        previousSelectedOption - The option that used to be the selected one.