Package org.apache.pivot.wtk
Class PromptListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.PromptListener
PromptListener.Adapter, PromptListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
bodyChanged(Prompt prompt, Component previousBody)
Deprecated.Called when a prompt's body has changed.void
messageChanged(Prompt prompt, java.lang.String previousMessage)
Deprecated.Called when a prompt's message has changed.void
messageTypeChanged(Prompt prompt, MessageType previousMessageType)
Deprecated.Called when a prompt's message type has changed.void
optionInserted(Prompt prompt, int index)
Deprecated.Called when an option has been inserted into a prompt's option sequence.void
optionsRemoved(Prompt prompt, int index, Sequence<?> removed)
Deprecated.Called when options have been removed from a prompt's option sequence.void
selectedOptionChanged(Prompt prompt, int previousSelectedOption)
Deprecated.Called when a prompt's selected option has changed.
-
-
-
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 interfacePromptListener
- 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 interfacePromptListener
- 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 interfacePromptListener
- 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 interfacePromptListener
- 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 interfacePromptListener
- 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 interfacePromptListener
- Parameters:
prompt
- The prompt that changed.previousSelectedOption
- The option that used to be the selected one.
-
-